Black screen problem

A project to port LÖVE to Android handhelds
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Black screen problem

Post 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!
Joemag
Prole
Posts: 24
Joined: Sun Apr 14, 2013 5:42 pm

Re: Black screen problem

Post 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:
  • I don't know.
If it did't help, could you maybe give us the apk?
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: Black screen problem

Post 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:
  1. Do you use the latest version of love-android-sdl2?
  2. Does the latest .apk that is available from https://bitbucket.org/MartinFelis/love- ... /downloads give you the no-game screen?
  3. Does your .apk include a game? If so, can you remove it and do you get the no-game screen?
  4. Is there maybe a game in the folder /sdcard/lovegame?
  5. Also if you want to include a game: does it work if you extract it to /sdcard/lovegame?
  6. Also if you want to include a game: have you performed and checked all instructions https://bitbucket.org/MartinFelis/love- ... _Packaging?
  7. 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).
  8. Have you tried running "ndk-build clean" before running "ndk-build"?
  9. Have you tried rebuilding from scratch, i.e. delete everything love-android-sdl2 related and start anew?
Bird thing: @fysxdotorg Blog thing: fysx.org
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Re: Black screen problem

Post 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"
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Re: Black screen problem

Post by Combokarel »

Well know I can't make the apk anymore :( It's getting worse!
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: Black screen problem

Post by fysx »

Can you try the things I listed in my previous post? At which point does it not work anymore?
Bird thing: @fysxdotorg Blog thing: fysx.org
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Re: Black screen problem

Post 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.
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: Black screen problem

Post 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:
  1. Do you use the latest version of love-android-sdl2?
  2. Does the latest .apk that is available from https://bitbucket.org/MartinFelis/love- ... /downloads give you the no-game screen?
  3. Does your .apk include a game? If so, can you remove it and do you get the no-game screen?
  4. Is there maybe a game in the folder /sdcard/lovegame?
  5. Also if you want to include a game: does it work if you extract it to /sdcard/lovegame?
  6. Also if you want to include a game: have you performed and checked all instructions https://bitbucket.org/MartinFelis/love- ... _Packaging?
  7. 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).
  8. Have you tried running "ndk-build clean" before running "ndk-build"?
  9. 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.
Bird thing: @fysxdotorg Blog thing: fysx.org
User avatar
Combokarel
Prole
Posts: 23
Joined: Sun Apr 27, 2014 11:18 am

Re: Black screen problem

Post by Combokarel »

No, step 2 is working.
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: Black screen problem

Post by fysx »

Well... how about step 3?
Bird thing: @fysxdotorg Blog thing: fysx.org
Locked

Who is online

Users browsing this forum: No registered users and 58 guests