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;
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
[SOLVED!]My game keeps crashing on Android
Forum rules
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
[SOLVED!]My game keeps crashing on Android
Last edited by Rex on Wed Feb 17, 2021 11:11 pm, edited 1 time in total.
- 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
It looks like your game and your Google play license key don't match.
I cant offer much other information at the moment.
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: My game keeps crashing on Android
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?
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?
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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
#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.
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- 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
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.
Never select "no" here
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: My game keeps crashing on Android
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.
Who is online
Users browsing this forum: No registered users