Re: RAPT - Ren'Py Android Packaging Tool
Posted: Tue May 26, 2015 9:55 am
Yes, it's made for arm only. It seems to work on intel devices that have an arm emulator, such as intel-based tablets.
Supporting creators of visual novels and story-based games since 2003.
https://lemmasoft.renai.us/forums/
Code: Select all
BUILD FAILED
/home/xavimat/Documents/renpy/rapt/android-sdk-r23/tools/ant/build.xml:601: The following error occurred while executing this line:
/home/xavimat/Documents/renpy/rapt/android-sdk-r23/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/xavimat/Documents/renpy/rapt/android-sdk-r23/tools/ant/build.xml:698: Execute failed: java.io.IOException: Cannot run program "/home/xavimat/Documents/renpy/rapt/android-sdk-r23/build-tools/20.0.0/aapt" (in directory "/home/xavimat/Documents/renpy/rapt/android-sdk-r23/extras/google/play_licensing/library"): error=2, No such file or directory
Code: Select all
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get install zlib1g:i386
[SOLVED: See latest edit at bottom]Live wrote:trying to make my game to an android game but when i try to build i get this error
BUILD FAILED
/Applications/renpy-6.17.0-sdk/rapt/android-sdk-r24.4.1/tools/ant/build.xml:928: The following error occurred while executing this line:
/Applications/renpy-6.17.0-sdk/rapt/android-sdk-r24.4.1/tools/ant/build.xml:946: null returned: 1
What is wrong?
Code: Select all
Buildfile: C:\RenPy\renpy-6.99.12.4-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml
[taskdef] Could not load definitions from resource anttasks.properties. It could not be found.
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
-check-env:
BUILD FAILED
C:\RenPy\renpy-6.99.12.4-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:396: Problem: failed to create task or type checkenv
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Code: Select all
-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at C:\RenPy\renpy-6.99.12.4-sdk\rapt\android-sdk-r24.4.1
Code: Select all
-package-resources:
[aapt] Creating full resource package...
[aapt] Unable to add 'C:\RenPy\renpy-6.99.12.4-sdk\rapt\assets\x-game\x-cache\x-bytecode.rpyb': Zip add failed (-2147483648)
[aapt] ERROR: unable to process assets while packaging 'C:\RenPy\renpy-6.99.12.4-sdk\rapt\bin\{projectName}-1.0.ap_'
[aapt] ERROR: packaging of 'C:\RenPy\renpy-6.99.12.4-sdk\rapt\bin\{projectName}-1.0.ap_' failed
I tried this, doesn't work :/ What exactly do you mean by complete restart of the process?Psieye wrote: ↑Tue May 30, 2017 4:09 pm[SOLVED: See latest edit at bottom]Live wrote:trying to make my game to an android game but when i try to build i get this error
BUILD FAILED
/Applications/renpy-6.17.0-sdk/rapt/android-sdk-r24.4.1/tools/ant/build.xml:928: The following error occurred while executing this line:
/Applications/renpy-6.17.0-sdk/rapt/android-sdk-r24.4.1/tools/ant/build.xml:946: null returned: 1
What is wrong?
I'm facing the same symptom as the above post. My context:
- Windows 10
- Renpy 6.99.12.4 (downloaded yesterday)
- After Renpy grabbed the Android SDK, ran rapt/android-sdk-r24.4.1/tools/android.bat and installed Android 7.1.1 (API 25 - latest one) and Android 2.2 (API
- Went through the configure step with mostly default answers aside from my (ASCII-only) project name and selecting Android 2.2 as my target platform (for menu buttons)
The android build attempt froze the Ren'Py launcher so I went to work. Hours later, I come home to find an android.txt with the error message quoted above. A quick search on stackoverflow says I should 'ant clean' so I ran "rapt/apache-ant-1.9.3/bin/ant clean" in the rapt/android-sdk-r24.4.1/tools/ant directory where build.xml is. That got hit with this error:I am trying again after installing (from the android.bat) Android 4.1.2 (API 16) as well. After tens of minutes to process 44165 android files, it sits at 'Packaging internal data' for... further tens of minutes before ending with 'The build seems to have failed'. The error message in android.txt is the same as before: null returned at build.xml 946. Any advice on how to proceed?Code: Select all
Buildfile: C:\RenPy\renpy-6.99.12.4-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml [taskdef] Could not load definitions from resource anttasks.properties. It could not be found. [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found. -check-env: BUILD FAILED C:\RenPy\renpy-6.99.12.4-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:396: Problem: failed to create task or type checkenv Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place.
In case it's relevant, the android.txt dump includes:Edit:Code: Select all
-check-env: [checkenv] Android SDK Tools Revision 25.2.5 [checkenv] Installed at C:\RenPy\renpy-6.99.12.4-sdk\rapt\android-sdk-r24.4.1
"ant clean" works when done from rapt/ but that doesn't solve the problem of the build ultimately reaching "null returned at build.xml 946". I noticed I hadn't pasted this piece of android.txt before:
----------------------------Code: Select all
-package-resources: [aapt] Creating full resource package... [aapt] Unable to add 'C:\RenPy\renpy-6.99.12.4-sdk\rapt\assets\x-game\x-cache\x-bytecode.rpyb': Zip add failed (-2147483648) [aapt] ERROR: unable to process assets while packaging 'C:\RenPy\renpy-6.99.12.4-sdk\rapt\bin\{projectName}-1.0.ap_' [aapt] ERROR: packaging of 'C:\RenPy\renpy-6.99.12.4-sdk\rapt\bin\{projectName}-1.0.ap_' failed
Solution
Plan B: a complete restart of the process. I started all the way back from the self-extracting renpy-6.99.12.4-sdk.7z.exe extracting to a new folder. Noticing that the "Install SDK" step was already grabbing libraries on its own, this time I didn't poke around with rapt/android-sdk-r24.4.1/tools/android.bat
This meant there were only 400-ish android files to process instead of the 44k I was seeing before. Stack overflow reported "Zip add failed" could mean the zip was too large - the vast reduction in android files to process and cram into a zip solved my issue.
Code: Select all
Updating source code.
Updating build files.
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
Resolved location of library project to: /Applications/renpy-6.99.13-sdk/rapt/extras/google/market_apk_expansion/downloader_library
Updated and renamed default.properties to project.properties
Updated local.properties
Added file ./build.xml
Updated file ./proguard-project.txt
Creating assets directory.
Packaging internal data.
I'm using Ant to build the package.
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
Buildfile: /Applications/renpy-6.99.13-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 /Applications/renpy-6.99.13-sdk/rapt/android-sdk-r24.4.1
-setup:
[echo] Project Name: SnowDazeTheMusicofWinter-0.9.19
[gettype] Project Type: Application
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
[echo] Resolving Build Target for SnowDazeTheMusicofWinter-0.9.19...
[gettarget] Project Target: Android 5.1.1
[gettarget] API level: 22
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for SnowDazeTheMusicofWinter-0.9.19...
[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 /Applications/renpy-6.99.13-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...
[mkdir] Created dir: /Applications/renpy-6.99.13-sdk/rapt/extras/google/market_licensing/library/bin/rsObj
[mkdir] Created dir: /Applications/renpy-6.99.13-sdk/rapt/extras/google/market_licensing/library/bin/rsLibs
[echo] ----------
[echo] Resolving Dependencies for library...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] No changed resources. R.java and Manifest.java untouched.
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 19 source files to /Applications/renpy-6.99.13-sdk/rapt/extras/google/market_licensing/library/bin/classes
[javac] error: Source option 1.5 is no longer supported. Use 1.6 or later.
[javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.
BUILD FAILED
/Applications/renpy-6.99.13-sdk/rapt/android-sdk-r24.4.1/tools/ant/build.xml:597: The following error occurred while executing this line:
/Applications/renpy-6.99.13-sdk/rapt/android-sdk-r24.4.1/tools/ant/build.xml:716: The following error occurred while executing this line:
/Applications/renpy-6.99.13-sdk/rapt/android-sdk-r24.4.1/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 0 seconds
The build seems to have failed.