Hi there! I'm a new user and would like to begin by saying thank you for releasing this awesome software!
I'm currently trying to build an Android test apk to see my game in action, but have been struggling with failed builds since last night. I've tried different directories, changing file names, everything I can think of or find. Here is the error text:
pdating source code.
Updating build files.
Resolved location of library project to: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library
Updated and renamed default.properties to project.properties
Updated local.properties
Added file D:\renpy-6.99.0-sdk\rapt\build.xml
Added file D:\renpy-6.99.0-sdk\rapt\proguard-project.txt
Creating assets directory.
Packaging internal data.
I'm using Ant to build the package.
Buildfile: D:\renpy-6.99.0-sdk\rapt\build.xml
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 23.0.0
[checkenv] Installed at D:\renpy-6.99.0-sdk\rapt\android-sdk-r23
-setup:
[echo] Project Name: EnglishAdventures-1.0
[gettype] Project Type: Application
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for EnglishAdventures-1.0...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\bin
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\bin\res
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\bin\rsObj
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\bin\rsLibs
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\gen
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\bin\classes
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for EnglishAdventures-1.0...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'release'...
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
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 23.0.0
[checkenv] Installed at D:\renpy-6.99.0-sdk\rapt\android-sdk-r23
-setup:
[echo] Project Name: library
[gettype] Project Type: Android Library
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for library...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\libs
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\res
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\rsObj
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\rsLibs
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\gen
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for library...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[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] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 19 source files to D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\src\com\google\android\vending\licensing\LicenseChecker.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\res
[crunch] To destination dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_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] Creating new property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
[propertyfile] Updating property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\build.prop
-release-sign:
-post-build:
release:
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
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 23.0.0
[checkenv] Installed at D:\renpy-6.99.0-sdk\rapt\android-sdk-r23
-setup:
[echo] Project Name: downloader_library
[gettype] Project Type: Android Library
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for downloader_library...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\libs
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\rsObj
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\rsLibs
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\gen
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes
[mkdir] Created dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for downloader_library...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
-code-gen:
[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] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 22 source files to D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\res
[crunch] To destination dir: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res
[crunch] Processing image to cache: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\res\drawable-hdpi\notify_panel_notification_icon_bg.png => D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res\drawable-hdpi\notify_panel_notification_icon_bg.png
[crunch] (processed image to cache entry D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res\drawable-hdpi\notify_panel_notification_icon_bg.png: 0% size of source)
[crunch] Processing image to cache: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\res\drawable-mdpi\notify_panel_notification_icon_bg.png => D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res\drawable-mdpi\notify_panel_notification_icon_bg.png
[crunch] (processed image to cache entry D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\res\drawable-mdpi\notify_panel_notification_icon_bg.png: 0% size of source)
[crunch] Crunched 2 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] Creating new property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
[propertyfile] Updating property file: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\build.prop
-release-sign:
-post-build:
release:
-code-gen:
[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] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 28 source files to D:\renpy-6.99.0-sdk\rapt\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: D:\renpy-6.99.0-sdk\rapt\bin\classes
[dex] input: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes.jar
[dex] input: D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes.jar
[dex] input: D:\renpy-6.99.0-sdk\rapt\libs\amazon-iap-2.0.1.jar
[dex] input: D:\renpy-6.99.0-sdk\rapt\libs\ouya-sdk.jar
[dex] Pre-Dexing D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library\bin\classes.jar -> classes-0a1e8de2582a1a8c9e4031a4c7c96a87.jar
[dex] Pre-Dexing D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\bin\classes.jar -> classes-7a20f12bad1ec2880a2c089d1108cd5e.jar
[dex] Pre-Dexing D:\renpy-6.99.0-sdk\rapt\libs\amazon-iap-2.0.1.jar -> amazon-iap-2.0.1-466f26bf45f546af26c12e446af86855.jar
[dex] Pre-Dexing D:\renpy-6.99.0-sdk\rapt\libs\ouya-sdk.jar -> ouya-sdk-17811c20c9c54fdbbab249711f165aff.jar
[dex] Converting compiled files and external libraries into D:\renpy-6.99.0-sdk\rapt\bin\classes.dex...
[dx] Merged dex A (63 defs/79.8KiB) with dex B (47 defs/88.1KiB). Result is 110 defs/197.1KiB. Took 0.1s
[dx] Merged dex A (110 defs/197.1KiB) with dex B (25 defs/35.5KiB). Result is 135 defs/283.1KiB. Took 0.0s
[dx] Merged dex A (135 defs/283.1KiB) with dex B (90 defs/79.8KiB). Result is 225 defs/467.7KiB. Took 0.0s
[dx] Merged dex A (225 defs/467.7KiB) with dex B (138 defs/123.2KiB). Result is 363 defs/802.6KiB. Took 0.0s
-crunch:
[crunch] Crunching PNG Files in source dir: D:\renpy-6.99.0-sdk\rapt\res
[crunch] To destination dir: D:\renpy-6.99.0-sdk\rapt\bin\res
[crunch] Processing image to cache: D:\renpy-6.99.0-sdk\rapt\res\drawable-hdpi\ic_launcher.png => D:\renpy-6.99.0-sdk\rapt\bin\res\drawable-hdpi\ic_launcher.png
[crunch] (processed image to cache entry D:\renpy-6.99.0-sdk\rapt\bin\res\drawable-hdpi\ic_launcher.png: 0% size of source)
[crunch] Processing image to cache: D:\renpy-6.99.0-sdk\rapt\res\drawable\icon.png => D:\renpy-6.99.0-sdk\rapt\bin\res\drawable\icon.png
[crunch] (processed image to cache entry D:\renpy-6.99.0-sdk\rapt\bin\res\drawable\icon.png: 96% size of source)
[crunch] Crunched 2 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
[aapt] (skipping dir '_compat' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_developer' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_layout' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_outline' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_placeholder' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_roundrect' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_amie2' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_austen' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_awt' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_bordered' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_crayon' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_diamond' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_glow' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_marker' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_regal' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_threeD' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] (skipping dir '_theme_tv' due to ANDROID_AAPT_IGNORE pattern '_*')
[aapt] D:\renpy-6.99.0-sdk\rapt\assets\game\x-miS_ìl.png: error: Invalid filename. Unable to add.
BUILD FAILED
D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\tools\ant\build.xml:932: The following error occurred while executing this line:
D:\renpy-6.99.0-sdk\rapt\android-sdk-r23\tools\ant\build.xml:950: null returned: 1
_________________________________
Finally, when I try to relaunch the Android builder, I get the following:
_________________________________
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/android.rpy", line 420, in <module>
File "game/android.rpy", line 215, in android_build
WindowsError: [Error 2] The system cannot find the file specified: 'D:\\renpy-6.99.0-sdk\\rapt\\assets\\game\\miS_\xf6\xaf.png'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "launcher/game/android.rpyc", line 420, in script
File "D:\renpy-6.99.0-sdk\renpy\ast.py", line 785, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\renpy-6.99.0-sdk\renpy\python.py", line 1419, in py_exec_bytecode
exec bytecode in globals, locals
File "game/android.rpy", line 420, in <module>
File "game/android.rpy", line 215, in android_build
File "D:\renpy-6.99.0-sdk\rapt\buildlib\rapt\build.py", line 501, in build
shutil.rmtree(plat.path("assets"))
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/shutil.py", line 245, in rmtree
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/shutil.py", line 250, in rmtree
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/shutil.py", line 248, in rmtree
WindowsError: [Error 2] The system cannot find the file specified: 'D:\\renpy-6.99.0-sdk\\rapt\\assets\\game\\miS_\xf6\xaf.png'
Windows-7-6.1.7601-SP1
Ren'Py 6.99.0.257
Ren'Py Launcher 6.99.0.257
If you could help this poor fool, I'd really appreciate it! ^^ Thank you!
Build Failed
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.
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.
- 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: Build Failed
Maybe blow away the rapt/assets directory, and try again?
You may also have non-ASCII filenames, which are problematic with zip files. (And an android apk is just a zip file.)
You may also have non-ASCII filenames, which are problematic with zip files. (And an android apk is just a zip file.)
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
Re: Build Failed
This could be your problem...
[aapt] D:\renpy-6.99.0-sdk\rapt\assets\game\x-miS_ìl.png: error: Invalid filename. Unable to add.
Android file names cannot use "-" try renaming the file. You can only have letters, numbers, underscore and .
[aapt] D:\renpy-6.99.0-sdk\rapt\assets\game\x-miS_ìl.png: error: Invalid filename. Unable to add.
Android file names cannot use "-" try renaming the file. You can only have letters, numbers, underscore and .
Re: Build Failed
Thank you! I'm trying both options right now -- I'll let you know how they go.
- 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: Build Failed
I don't think that's true of assets, only resources.
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
Re: Build Failed
It looks like wiping out the assets folder did work! Thank you so much for the advice, both of you. ^^