Page 1 of 1

Create .apk File

Posted: Sun Jan 13, 2019 10:22 pm
by p4s3r0
Hi, i have two questions:
1. Can i build with my mac a .apk file? i already did, but it i cant execute it so i'm asking...
2. I build the .apk file and when i run it on my android, only a black screen appears.
Would appreciate some help! thx

Re: Create .apk File

Posted: Mon Jan 14, 2019 10:52 pm
by ReFreezed
1. You can make .apk files on any operative system.
2. Please share your .apk file so people can help you find the problem instead of blindly guessing what the issue is.

The wiki may help you, if you didn't check it already.

Re: Create .apk File

Posted: Tue Jan 15, 2019 4:27 pm
by p4s3r0
I attached you my .apk File.

Re: Create .apk File

Posted: Wed Jan 16, 2019 10:49 pm
by Gabriel Bras
Ok, so you used Start Game Dev, wich compiles the 10.1 version of love and you made your game for the version 11.2 of it.
Without a .love file I'm not sure if anyone can help you, but I have a guess.
One of the differences between these two versions is the range of the color values: before 11.0 version, this range was in 0~255 and now it is in 0~1, so try to make this conversion.
(Sorry for my English)

Re: Create .apk File

Posted: Thu Jan 17, 2019 10:54 am
by PGUp

Re: Create .apk File

Posted: Thu Jan 17, 2019 10:31 pm
by p4s3r0
Thanks Gabriel Bras! You were right!
I had to change the color values [0-1] to [0-255].
It works now.
God bless you :D

Re: Create .apk File

Posted: Sat Jan 19, 2019 8:48 pm
by xNick1
p4s3r0 wrote:
Thu Jan 17, 2019 10:31 pm
Thanks Gabriel Bras! You were right!
I had to change the color values [0-1] to [0-255].
It works now.
God bless you :D
Google only accepts apps compiled with API26 or higher.
If you want to publish the game on the store you'll have to move to Love 11.2 and use the 0.11.x branch of the Android repo: https://bitbucket.org/MartinFelis/love- ... rc/master/
I used Start Game Dev kit in the past, it's great to test the game on the fly