Page 1 of 3
Black screen problem
Posted: Tue Sep 09, 2014 3:15 pm
by Combokarel
When i open the .apk i made with love-android-sdl2 using ant debug, I get a black screen.
The only (sort of) error I get is when I do ndk-build:
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 10 in ./AndroidManifest.xml
Any help is appreciated!
Re: Black screen problem
Posted: Wed Sep 10, 2014 7:00 am
by Joemag
Do you get a blackscreen when you open the apk or do you get a blackscreen when you install the apk and start the game?
If you get it when you open the apk:
- Have you allowed to install from unknown sources?
Android 2.x: Go to Settings > Applications > tick “Unknown sources“
Android 4.x: Go to Settings > Security > tick “Unknown sources“
- If you use jdk 8: Install jdk 7. Jdk 8 doesn't work.
- Have you changed the package name of your game (org.love2d.android)? If not, you have to uninstall "LÖVE for Android" first.
If you get the blackscreen when you start the game:
If it did't help, could you maybe give us the apk?
Re: Black screen problem
Posted: Wed Sep 10, 2014 8:16 am
by fysx
The warning
Combokarel wrote:Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 10 in ./AndroidManifest.xml
can be ignored.
Here are some questions that should be helpful for troubleshooting:
- Do you use the latest version of love-android-sdl2?
- Does the latest .apk that is available from https://bitbucket.org/MartinFelis/love- ... /downloads give you the no-game screen?
- Does your .apk include a game? If so, can you remove it and do you get the no-game screen?
- Is there maybe a game in the folder /sdcard/lovegame?
- Also if you want to include a game: does it work if you extract it to /sdcard/lovegame?
- Also if you want to include a game: have you performed and checked all instructions https://bitbucket.org/MartinFelis/love- ... _Packaging?
- Did you wait long enough? It may take some time depending on your device and size of the game to properly load it (i.e. 10-20 seconds).
- Have you tried running "ndk-build clean" before running "ndk-build"?
- Have you tried rebuilding from scratch, i.e. delete everything love-android-sdl2 related and start anew?
Re: Black screen problem
Posted: Wed Sep 10, 2014 3:25 pm
by Combokarel
Well I tried a lot of things and now I have a new problem: after a couple of seconds of blackscreen it says: "Löve for android has stopped working"
Re: Black screen problem
Posted: Wed Sep 10, 2014 4:23 pm
by Combokarel
Well know I can't make the apk anymore
It's getting worse!
Re: Black screen problem
Posted: Fri Sep 12, 2014 8:16 am
by fysx
Can you try the things I listed in my previous post? At which point does it not work anymore?
Re: Black screen problem
Posted: Sat Sep 20, 2014 2:53 pm
by Combokarel
Sorry for the late response, I have tried everything above and nothing helped, when I installed everything again, ndk-build doesn't start and ant debug doesn't make files.
Re: Black screen problem
Posted: Sun Sep 28, 2014 9:17 am
by fysx
Combokarel wrote:Sorry for the late response, I have tried everything above and nothing helped, when I installed everything again, ndk-build doesn't start and ant debug doesn't make files.
So you're saying that step 2 of
fysx wrote:
Here are some questions that should be helpful for troubleshooting:
- Do you use the latest version of love-android-sdl2?
- Does the latest .apk that is available from https://bitbucket.org/MartinFelis/love- ... /downloads give you the no-game screen?
- Does your .apk include a game? If so, can you remove it and do you get the no-game screen?
- Is there maybe a game in the folder /sdcard/lovegame?
- Also if you want to include a game: does it work if you extract it to /sdcard/lovegame?
- Also if you want to include a game: have you performed and checked all instructions https://bitbucket.org/MartinFelis/love- ... _Packaging?
- Did you wait long enough? It may take some time depending on your device and size of the game to properly load it (i.e. 10-20 seconds).
- Have you tried running "ndk-build clean" before running "ndk-build"?
- Have you tried rebuilding from scratch, i.e. delete everything love-android-sdl2 related and start anew?
is not working?
Note: it is really tricky to give advice if it is unclear at what point things stop working.
Re: Black screen problem
Posted: Sun Sep 28, 2014 10:14 am
by Combokarel
No, step 2 is working.
Re: Black screen problem
Posted: Mon Sep 29, 2014 6:59 am
by fysx
Well... how about step 3?