[SOLVED!]My game keeps crashing on Android

Forum organization and occasional community-building.
Forum rules
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
Rex
Newbie
Posts: 5
Joined: Thu Jun 25, 2020 5:15 pm
Github: hakanpolat7
Contact:

[SOLVED!]My game keeps crashing on Android

#1 Post 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 48 times
options.rpy
(6.61 KiB) Downloaded 48 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
Attachments
WhatsApp Image 2021-01-08 at 22.11.55.jpeg
Last edited by Rex on Wed Feb 17, 2021 11:11 pm, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: My game keeps crashing on Android

#2 Post 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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Rex
Newbie
Posts: 5
Joined: Thu Jun 25, 2020 5:15 pm
Github: hakanpolat7
Contact:

Re: My game keeps crashing on Android

#3 Post 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?

User avatar
PyTom
Ren'Py Creator
Posts: 16094
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: My game keeps crashing on Android

#4 Post 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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: My game keeps crashing on Android

#5 Post 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
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Rex
Newbie
Posts: 5
Joined: Thu Jun 25, 2020 5:15 pm
Github: hakanpolat7
Contact:

Re: My game keeps crashing on Android

#6 Post 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

Rex
Newbie
Posts: 5
Joined: Thu Jun 25, 2020 5:15 pm
Github: hakanpolat7
Contact:

Re: My game keeps crashing on Android

#7 Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users