Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Black screen after closing and reopening app and restarting unity project #3

Closed
Betapig1 opened this issue Jun 24, 2021 · 19 comments
Closed

Comments

@Betapig1
Copy link

When I open the app and open the project then close the app. The next time I open the app and the project the project just shows a black screen

@azesmway
Copy link
Owner

When I open the app and open the project then close the app. The next time I open the app and the project the project just shows a black screen

Please write in more detail. How do you close the application?

@Betapig1
Copy link
Author

I close the application by opening the list if apps open, and swiping it closed

@azesmway
Copy link
Owner

Killing the application or removing it to the background?

@Betapig1
Copy link
Author

Killing it completley i believe. The application is no longer open

@Betapig1
Copy link
Author

The only way I can get the project to show again is to uninstall and rebuild the app

@azesmway
Copy link
Owner

I made a build apk and my test application which I posted with the link and with a real working unit project starts and closes without problems

@Betapig1
Copy link
Author

Did you do it with a development build? Rather than a release apk?

@azesmway
Copy link
Owner

release apk

@Betapig1
Copy link
Author

If you do it with a dev build you will probably find the same bug

@azesmway
Copy link
Owner

not, everything works in all variants

@Betapig1
Copy link
Author

Well do you want some of my code? Which files would help you

@azesmway
Copy link
Owner

image

@Betapig1
Copy link
Author

Okay I'll get that to you in about an hour if that works

@Betapig1
Copy link
Author

@azesmway
Copy link
Owner

https://drive.google.com/file/d/18l0K7FoHNm8_hMqXeno7ZRVabPbKHxue/view?usp=sharing

everything works fine
a problem with the screen because the settings from the description were not made

UNITY PLAYER SETTINGS
Resolution and Presentation -> Start in fullscreen mode -> no selection set !
Resolution and Presentation -> Render outside safe area -> no selection set !

@Betapig1
Copy link
Author

Betapig1 commented Jun 24, 2021

Ah that makes sense. One more question, how do I include unity packages and assets? Becuase with a different project i get this `

Could not find :native-toolkit:.
Required by:
project :app
project :app > project :unityLibrary
Could not find :support-compat-27.1.1:.
Required by:
project :app
project :app > project :unityLibrary
Could not find :support-v4-27.1.1:.
Required by:
project :app
project :app > project :unityLibrary`

when i try to run it because it cant find the .aar files

@azesmway
Copy link
Owner

azesmway commented Jun 24, 2021

excuse me - I did not understand the question

@Betapig1
Copy link
Author

Certain unity assets attach .aar files in the libs folder and requires them. However when I load the project in react native it is unable to find them

@azesmway
Copy link
Owner

Create directory into android/app/libs
Copy libs from <project_name>/unity/builds/android/unityLibrary/libs/* to android/app/libs

Add to build.gradle

allprojects {
repositories {
flatDir {
dirs "$rootDir/app/libs"
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants