[SOLVED] Ren'Py android distribution - The build seems to have failed.

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
Weiss-
Newbie
Posts: 6
Joined: Wed Jan 03, 2018 12:45 am
Projects: Over the Starlit Sky
Location: Philippines
Contact:

[SOLVED] Ren'Py android distribution - The build seems to have failed.

#1 Post by Weiss- »

I'm trying to make an android distribution of my project. I don't know what I'm doing wrong but I can't seem to build my project. I tried manually install RAPT, updated Ren'Py, almost everything to make it work but it still gives me error

Code: Select all

Updating source code.

Updating build files.
Resolved location of library project to: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library
Updated and renamed default.properties to project.properties
Updated local.properties
Added file C:\Programs\renpy-6.99.14-sdk\rapt\build.xml
Updated file C:\Programs\renpy-6.99.14-sdk\rapt\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.




Creating assets directory.

Packaging internal data.

I'm using Ant to build the package.
Buildfile: C:\Programs\renpy-6.99.14-sdk\rapt\build.xml

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 24.4.1
 [checkenv] Installed at C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1

-setup:
     [echo] Project Name: OvertheStarlitSky-1.1
  [gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
     [echo] Resolving Build Target for OvertheStarlitSky-1.1...
[gettarget] Project Target:   Android 5.1.1
[gettarget] API level:        22
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Programs\renpy-6.99.14-sdk\rapt\bin\rsObj
    [mkdir] Created dir: C:\Programs\renpy-6.99.14-sdk\rapt\bin\rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for OvertheStarlitSky-1.1...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'release'...

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 24.4.1
 [checkenv] Installed at C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1

-setup:
     [echo] Project Name: library
  [gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
     [echo] Resolving Build Target for library...
[gettarget] Project Target:   Android 5.1.1
[gettarget] API level:        22
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for library...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found new input file
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
     [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex:
     [echo] Library project: do not convert bytecode...

-crunch:
   [crunch] Crunching PNG Files in source dir: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\res
   [crunch] To destination dir: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\bin\res
   [crunch] Crunched 0 PNG files to update cache

-package-resources:
     [echo] Library project: do not package resources...

-package:
     [echo] Library project: do not package apk...

-post-package:

-release-prompt-for-password:

-release-nosign:
     [echo] 
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\bin\build.prop
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\bin\build.prop
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\bin\build.prop
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\bin\build.prop

-release-sign:

-post-build:

release:

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 24.4.1
 [checkenv] Installed at C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1

-setup:
     [echo] Project Name: downloader_library
  [gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
     [echo] Resolving Build Target for downloader_library...
[gettarget] Project Target:   Android 5.1.1
[gettarget] API level:        22
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for downloader_library...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
    [javac] Compiling 1 source file to C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\classes
    [javac] warning: [options] source value 1.6 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.6 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 3 warnings
     [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex:
     [echo] Library project: do not convert bytecode...

-crunch:
   [crunch] Crunching PNG Files in source dir: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\res
   [crunch] To destination dir: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\res
   [crunch] Crunched 0 PNG files to update cache

-package-resources:
     [echo] Library project: do not package resources...

-package:
     [echo] Library project: do not package apk...

-post-package:

-release-prompt-for-password:

-release-nosign:
     [echo] 
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\build.prop

-release-sign:

-post-build:

release:

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] Found 1 AIDL files.
     [aidl] Compiling 1 AIDL files.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 6 source files to C:\Programs\renpy-6.99.14-sdk\rapt\bin\classes
    [javac] warning: [options] source value 1.6 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.6 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 3 warnings

-post-compile:

-obfuscate:

-dex:
      [dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\bin\classes
      [dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\classes.jar
      [dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\bin\classes.jar
      [dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\libs\amazon-iap-2.0.1.jar
      [dex] Pre-Dexing C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\classes.jar -> classes-7751e3b7a35f0a2333f9a1fcf81db3ce.jar
       [dx] -Djava.ext.dirs=C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\build-tools\23.0.1\lib is not supported.  Use -classpath instead.
       [dx] Error: Could not create the Java Virtual Machine.
       [dx] Error: A fatal exception has occurred. Program will exit.

BUILD FAILED
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:888: The following error occurred while executing this line:
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:890: The following error occurred while executing this line:
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:902: The following error occurred while executing this line:
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:283: null returned: 1

Total time: 11 seconds




The build seems to have failed.
I tried it in the Tutorial Project and in The Question project and same error occured.

Here's my Configuration:

Code: Select all

Full Application Name: Over the Starlit Sky
Short Name of the application: Starlit Sky
Package Name: com.teamsquared.test
Application version: 1.1
Version code: 101
Support in app purchasing: Neither
Expansion APK: No
Version of android: 4.0
Access the internet: Yes
Any help will be appreciated. Sorry for my bad english :c Thanks in Advanced :D
Last edited by Weiss- on Thu Jan 25, 2018 3:35 am, edited 1 time in total.

DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: Ren'Py android distribution - The build seems to have failed.

#2 Post by DragoonHP »

Ren'Py needs 32-bit version of Java SDK. Which version do you have?

User avatar
Weiss-
Newbie
Posts: 6
Joined: Wed Jan 03, 2018 12:45 am
Projects: Over the Starlit Sky
Location: Philippines
Contact:

Re: Ren'Py android distribution - The build seems to have failed.

#3 Post by Weiss- »

Thanks for the quick reply. I have Java SDK 9.0.4 installed.

Apa
Regular
Posts: 103
Joined: Fri Dec 23, 2016 2:26 am
Location: NYC
Contact:

Re: Ren'Py android distribution - The build seems to have failed.

#4 Post by Apa »

Weiss- wrote: Tue Jan 23, 2018 10:23 pm I'm using Ant to build the package.

-dex:
[dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\bin\classes
[dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\classes.jar
[dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_licensing\library\bin\classes.jar
[dex] input: C:\Programs\renpy-6.99.14-sdk\rapt\libs\amazon-iap-2.0.1.jar
[dex] Pre-Dexing C:\Programs\renpy-6.99.14-sdk\rapt\extras\google\market_apk_expansion\downloader_library\bin\classes.jar -> classes-7751e3b7a35f0a2333f9a1fcf81db3ce.jar
[dx] -Djava.ext.dirs=C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\build-tools\23.0.1\lib is not supported. Use -classpath instead.
[dx] Error: Could not create the Java Virtual Machine.
[dx] Error: A fatal exception has occurred. Program will exit.

BUILD FAILED
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:888: The following error occurred while executing this line:
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:890: The following error occurred while executing this line:
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:902: The following error occurred while executing this line:
C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:283: null returned: 1
The build seems to have failed.
[/code]
Looks like Ant build error to me... Ant can do build with any Java version (x86/x64).
Ant itself if java based. It failed on creating dex step with error:
Could not create the Java Virtual Machine.
Tho hard to believe, if it possible your PC doesn’t have enough memory to span new JVM?

Try DragoonHP advice – use Java x86, it does need less memory for sure.

Code: Select all

-Djava.ext.dirs=C:\Programs\renpy-6.99.14-sdk\rapt\android-sdk-r24.4.1\build-tools\23.0.1\lib is not supported.  Use -classpath instead.
Do you use Java 9?
I’m on Java 7 still.
Java 9 might be a lot more memory hungry?

Apa
Regular
Posts: 103
Joined: Fri Dec 23, 2016 2:26 am
Location: NYC
Contact:

Re: Ren'Py android distribution - The build seems to have failed.

#5 Post by Apa »

Weiss- wrote: Thu Jan 25, 2018 2:50 am Thanks for the quick reply. I have Java SDK 9.0.4 installed.
Yep, Google for
java.ext.dirs is not supported. use classpath instead
Try downgrading to Java 8 or 7?

User avatar
Weiss-
Newbie
Posts: 6
Joined: Wed Jan 03, 2018 12:45 am
Projects: Over the Starlit Sky
Location: Philippines
Contact:

Re: Ren'Py android distribution - The build seems to have failed.

#6 Post by Weiss- »

Apa wrote: Thu Jan 25, 2018 2:52 am Do you use Java 9?
I’m on Java 7 still.
Java 9 might be a lot more memory hungry?
Yes, I'm using Java 9. I'll try installing Java 8 x86 to see if it works. Thanks for the quick reply :D

User avatar
Weiss-
Newbie
Posts: 6
Joined: Wed Jan 03, 2018 12:45 am
Projects: Over the Starlit Sky
Location: Philippines
Contact:

Re: Ren'Py android distribution - The build seems to have failed.

#7 Post by Weiss- »

It worked! Installing Java 8 x86 version work! Thank you guys! <3

Apa
Regular
Posts: 103
Joined: Fri Dec 23, 2016 2:26 am
Location: NYC
Contact:

Re: Ren'Py android distribution - The build seems to have failed.

#8 Post by Apa »

Weiss- wrote: Thu Jan 25, 2018 3:35 am It worked! Installing Java 8 x86 version work! Thank you guys! <3
Java 8 x64 should work too.
The Java 9 error has nothing to do with RenPy, Ant build.xml needs to be updated. :oops:

Post Reply

Who is online

Users browsing this forum: No registered users