Page 1 of 1

[SOLVED!]My game keeps crashing on Android

Posted: Fri Jan 08, 2021 3:24 pm
by Rex
I have created a game and made the android build.I used last versions of both Renpy and Rapt.
My debug apk runs perfectly.But when ı made the release build and upload it into Google Play it crashed.
I also tried using old versions of Renpy and Rapt but the issue contiunes.
Here is the text that android gives me after game crash;

java.lang.IllegalArgumentException: com.google.android.vending.licensing.util.Base64DecoderException: Bad Base64 input character at 3: 95(decimal)
at com.google.android.vending.licensing.LicenseChecker.generatePublicKey(LicenseChecker.java:121)
at com.google.android.vending.licensing.LicenseChecker.<init>(LicenseChecker.java:95)
at com.google.android.vending.expansion.downloader.impl.DownloaderService$LVLRunnable.run(DownloaderService.java:768)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6861)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: com.google.android.vending.licensing.util.Base64DecoderException: Bad Base64 input character at 3: 95(decimal)
at com.google.android.vending.licensing.util.Base64.decode(Base64.java:546)
at com.google.android.vending.licensing.util.Base64.decode(Base64.java:474)
at com.google.android.vending.licensing.util.Base64.decode(Base64.java:420)
at com.google.android.vending.licensing.LicenseChecker.generatePublicKey(LicenseChecker.java:112)
... 9 more"



When ı build my package,I used following settings
"No app purchase,No automatic update,Created expansion apk's"
"I have turkish letters like ç,ş,ü,ö,ğ in my script but all of them are in right place,have no text error when I checked it"


*Some solutions that I tried but didnt work;
-Deleting build.classify rules in options.rpy
-İnstead of universal version,uploaded other versions
-When I use Renpy 7.3.5,loading screen appears,but then game crashes.

Here is my files;
script.rpy
(98.72 KiB) Downloaded 29 times
options.rpy
(6.61 KiB) Downloaded 28 times
My game may not be so awesome but it took eight monts to complete it.Any help will be very precious to me.Thanks!




****************UPDATE***********************
Turns out the error emerges because temporal inequality between game resources and renpy launcher version

I started to build my game abaout when covid became worldwide pandemic.So it took about several months to complete.During that time
Renpy got updated which is absolutely normal.When I completed my game Renpy version was different than the one I used at the beginning.
So probably this caused apk to crash,because when I create a new game in latest version and filled the folders by just copy&paste,my apk
ran perfectly on any device.
Thanks to everyone who cared and replied,long live Renpy community! <3

Re: My game keeps crashing on Android

Posted: Sat Jan 09, 2021 4:49 am
by Imperf3kt
It looks like your game and your Google play license key don't match.

I cant offer much other information at the moment.

Re: My game keeps crashing on Android

Posted: Sat Jan 09, 2021 1:29 pm
by Rex
I used the first android.keystore file while I build my package.
I place the file in the rapt folder,this is the way to sign package am I right? Or should I do something else yet I dont know?

Re: My game keeps crashing on Android

Posted: Sun Jan 10, 2021 12:09 am
by PyTom
#build.google_play_key = "3B:B8:49:A9:80:95:80:CC:E1:7D:1C:7E:B4:66:BF:32:04:9A:F2:96"

That's not valid. The real one is much longer.

Re: My game keeps crashing on Android

Posted: Mon Jan 11, 2021 6:38 am
by Imperf3kt
I've just realised you're checking "no" to allowing java source code updates. In my experience, this is a mandatory step and you must click "yes" for anything to work or the build will fail every time.
Image
Never select "no" here

Re: My game keeps crashing on Android

Posted: Tue Jan 12, 2021 7:53 pm
by Rex
PyTom wrote:
Sun Jan 10, 2021 12:09 am
#build.google_play_key = "3B:B8:49:A9:80:95:80:CC:E1:7D:1C:7E:B4:66:BF:32:04:9A:F2:96"

That's not valid. The real one is much longer.
But this appears in Google Play,so I put it in code.How can I reach the real one

Re: My game keeps crashing on Android

Posted: Tue Jan 12, 2021 7:54 pm
by Rex
Imperf3kt wrote:
Mon Jan 11, 2021 6:38 am
I've just realised you're checking "no" to allowing java source code updates. In my experience, this is a mandatory step and you must click "yes" for anything to work or the build will fail every time.
Image
Never select "no" here
In this version I may have selected no that is true.But I have uploaded versions that I select yes in this choice.Both of them didnt work.