A Problem when creating Android Package file

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
angga105
Newbie
Posts: 10
Joined: Fri Oct 12, 2018 1:26 pm
Projects: Koi Dropout
Organization: Useless
Location: Jakarta
Contact:

A Problem when creating Android Package file

#1 Post by angga105 » Mon Nov 26, 2018 3:38 pm

Hello guys,

I have already finished a little part of my project, and i'm goin to test it to see if the game works fine on my prefered platform (Android).

So, the thing is. When building Android package and click Build, the log process seems fine until at the end there is an error "The Build seems failed"
I don't know what's wrong so i am checking the log process..

Here's the summary:

Code: Select all

Ren'Py 7.1.3.1092

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
:app:preBuild UP-TO-DATE
:renpyandroid:preBuild UP-TO-DATE
:renpyandroid:preReleaseBuild UP-TO-DATE
:renpyandroid:checkReleaseManifest UP-TO-DATE
:renpyandroid:processReleaseManifest UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:renpyandroid:compileReleaseAidl UP-TO-DATE
:app:compileReleaseAidl UP-TO-DATE
:renpyandroid:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript UP-TO-DATE
:app:checkReleaseManifest UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:mainApkListPersistenceRelease UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:renpyandroid:compileReleaseRenderscript UP-TO-DATE
:renpyandroid:generateReleaseResValues UP-TO-DATE
:renpyandroid:generateReleaseResources UP-TO-DATE
:renpyandroid:packageReleaseResources UP-TO-DATE
:app:mergeReleaseResources
:app:createReleaseCompatibleScreenManifests UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:splitsDiscoveryTaskRelease UP-TO-DATE
:renpyandroid:platformAttrExtractor UP-TO-DATE
:renpyandroid:generateReleaseRFile UP-TO-DATE
:app:processReleaseResources
:app:generateReleaseSources
:renpyandroid:generateReleaseBuildConfig UP-TO-DATE
:renpyandroid:prepareLintJar UP-TO-DATE
:renpyandroid:generateReleaseSources UP-TO-DATE
:renpyandroid:javaPreCompileRelease UP-TO-DATE
:renpyandroid:compileReleaseJavaWithJavac UP-TO-DATE
:renpyandroid:processReleaseJavaRes NO-SOURCE
:renpyandroid:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
:app:javaPreCompileRelease UP-TO-DATE
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk NO-SOURCE
:app:compileReleaseSources UP-TO-DATE
:app:lintVitalRelease
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:renpyandroid:mergeReleaseShaders UP-TO-DATE
:renpyandroid:compileReleaseShaders UP-TO-DATE
:renpyandroid:generateReleaseAssets UP-TO-DATE
:renpyandroid:packageReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:transformClassesWithDexBuilderForRelease UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForRelease UP-TO-DATE
:app:transformDexArchiveWithDexMergerForRelease UP-TO-DATE
:app:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:compileReleaseNdk NO-SOURCE
:renpyandroid:mergeReleaseJniLibFolders UP-TO-DATE
:renpyandroid:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:renpyandroid:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:app:processReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:app:validateSigningRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:validateSigningRelease'.
> Keystore file 'E:\Program Files\Renpy (Visual Novel Maker)\rapt\android.keystore' not found for signing config 'release'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
45 actionable tasks: 5 executed, 40 up-to-date




The build seems to have failed.
First thing is : I am using the latest Renpy 1.7.3 and the latest rapt. I've also replacing new file to make sure there isn't an error on main program, but i think it wasn't.
After that, i am testing it with Renpy example program such as The Question and Tutorial and the result is the same.
But when building with Debug type it works fine, the only problem is the Release type. So my first guess is maybe i don't have android.keystore but when i
checked it was there. Truly, this is quite a trouble for me.

I hope anyone of you know how to fix my problem,

Again, thank you for attention! :)
Useless human in the world :lol: :lol: :lol:

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

Re: A Problem when creating Android Package file

#2 Post by Imperf3kt » Mon Nov 26, 2018 4:19 pm

You need to go to the configure option first and set a key when asked.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
angga105
Newbie
Posts: 10
Joined: Fri Oct 12, 2018 1:26 pm
Projects: Koi Dropout
Organization: Useless
Location: Jakarta
Contact:

Re: A Problem when creating Android Package file

#3 Post by angga105 » Mon Nov 26, 2018 5:21 pm

Hmm, i don't know anything about setting a key for android package. Last time, when i'm using Renpy version 1.7.1 there isn't any problem like this. The build distribution just works fine until now.

By the way, Can you show me how to configure that option?
Useless human in the world :lol: :lol: :lol:

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

Re: A Problem when creating Android Package file

#4 Post by Imperf3kt » Mon Nov 26, 2018 5:35 pm

I'm not at a PC with renpy installed, but it should be under configure which is right above "build package" for Android.
You will be asked a bunch of questions, it is the final one asked.

I had this same error myself shortly after upgrading to renpy 7. As I was not releasing my builds anywhere except my own phone, I did not create a key, but after upgrading the key was required.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Post Reply

Who is online

Users browsing this forum: Google [Bot]