Create .apk File

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
p4s3r0
Prole
Posts: 4
Joined: Sun Jan 13, 2019 9:25 pm

Create .apk File

Post 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
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Create .apk File

Post 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.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
p4s3r0
Prole
Posts: 4
Joined: Sun Jan 13, 2019 9:25 pm

Re: Create .apk File

Post by p4s3r0 »

I attached you my .apk File.
Gabriel Bras
Prole
Posts: 3
Joined: Sat Jul 15, 2017 4:44 am

Re: Create .apk File

Post 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)
PGUp
Party member
Posts: 105
Joined: Fri Apr 21, 2017 9:17 am

Re: Create .apk File

Post by PGUp »

-
p4s3r0
Prole
Posts: 4
Joined: Sun Jan 13, 2019 9:25 pm

Re: Create .apk File

Post 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
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Create .apk File

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests