[Solved] Android Build Error

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
aquamista
Regular
Posts: 29
Joined: Sun Jan 19, 2014 1:31 pm
Contact:

[Solved] Android Build Error

#1 Post by aquamista » Sat Jun 07, 2014 11:39 pm

I'm making a test game for a school project using Ren'Py and I decided to stop halfway to see how it looks like on a tablet. I did everything I had to do before I could "Build Package". Once I did, this happens. Here's the full android.txt message:

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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library
Updated project.properties
Updated local.properties
Added file ./build.xml
Updated file ./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.
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
Buildfile: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/build.xml

-check-env:
 [checkenv] Android SDK Tools Revision 22.6.2
 [checkenv] Installed at /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2

-setup:
     [echo] Project Name: PrequelDemoTest-0.5
  [gettype] Project Type: Application

-pre-clean:

clean:
   [delete] Deleting directory /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin
   [delete] Deleting directory /Users/srinarnopurwantoro/Azzy/RenPy/rapt/gen
[getlibpath] Library dependencies:
[getlibpath] 
[getlibpath] ------------------
[getlibpath] Ordered libraries:

nodeps:

-check-env:
 [checkenv] Android SDK Tools Revision 22.6.2
 [checkenv] Installed at /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2

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

-pre-clean:

clean:
   [delete] Deleting directory /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin
   [delete] Deleting directory /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/gen

nodeps:

-check-env:
 [checkenv] Android SDK Tools Revision 22.6.2
 [checkenv] Installed at /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2

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

-pre-clean:

clean:
   [delete] Deleting directory /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin
   [delete] Deleting directory /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/gen

-set-mode-check:

-set-release-mode:

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

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 22.6.2
 [checkenv] Installed at /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2

-setup:
     [echo] Project Name: PrequelDemoTest-0.5
  [gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
     [echo] Resolving Build Target for PrequelDemoTest-0.5...
[gettarget] Project Target:   Android 2.2
[gettarget] API level:        8
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin/res
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin/rsObj
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin/rsLibs
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/gen
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin/classes
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for PrequelDemoTest-0.5...
[dependency] Ordered libraries:
[dependency] /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library
[dependency] /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library
[dependency] 
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
     [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 22.6.2
 [checkenv] Installed at /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2

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

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
     [echo] Resolving Build Target for library...
[gettarget] Project Target:   Android 4.0.3
[gettarget] API level:        15
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/res
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/rsObj
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/rsLibs
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/gen
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/classes
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for library...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.

-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 /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/res
   [crunch] To destination dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/build.prop
[propertyfile] Updating property file: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/build.prop
[propertyfile] Updating property file: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_licensing/library/bin/build.prop
[propertyfile] Updating property file: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_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 22.6.2
 [checkenv] Installed at /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2

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

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
     [echo] Resolving Build Target for downloader_library...
[gettarget] Project Target:   Android 4.0.3
[gettarget] API level:        15
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/res
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/rsObj
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/rsLibs
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/gen
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/classes
    [mkdir] Created dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.

-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 /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/res
   [crunch] To destination dir: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/res
   [crunch] Processing image to cache: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/res/drawable-hdpi/notify_panel_notification_icon_bg.png => /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/res/drawable-hdpi/notify_panel_notification_icon_bg.png
   [crunch]   (processed image to cache entry /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/res/drawable-mdpi/notify_panel_notification_icon_bg.png => /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/res/drawable-mdpi/notify_panel_notification_icon_bg.png
   [crunch]   (processed image to cache entry /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/build.prop
[propertyfile] Updating property file: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/build.prop
[propertyfile] Updating property file: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/extras/google/play_apk_expansion/downloader_library/bin/build.prop
[propertyfile] Updating property file: /Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/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] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] /Users/srinarnopurwantoro/Azzy/RenPy/rapt/bin/AndroidManifest.xml:2: error: Error: Float types not allowed (at 'versionCode' with value '0.5').

BUILD FAILED
/Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/tools/ant/build.xml:653: The following error occurred while executing this line:
/Users/srinarnopurwantoro/Azzy/RenPy/rapt/android-sdk-r22.6.2/tools/ant/build.xml:698: null returned: 1

Total time: 6 seconds




The build seems to have failed.
I'm new to this so I have no idea what's happening.. ;; __ ;; Please help!! OTL
Last edited by aquamista on Wed Jun 11, 2014 7:03 pm, edited 2 times in total.
Image

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Android Build Error

#2 Post by PyTom » Sat Jun 07, 2014 11:50 pm

The version number needs to be a whole number - so 505 rather than 0.5.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
aquamista
Regular
Posts: 29
Joined: Sun Jan 19, 2014 1:31 pm
Contact:

Re: Android Build Error

#3 Post by aquamista » Sat Jun 07, 2014 11:54 pm

oh my god I feel so stupid thank you sooo much!!~ ;; A ;; that solved everything LOL
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Ocelot