Andriod App BUILD FAILED (3.x)

cobanja

  • Posts: 5
Please! I need help with compiling into android application. Every time the logs show me the same "BUILD FAILED", and I don't know why...

There are the last lines from the log:

[LOG] Running command: BUILD
[LOG]  - Running command: haxe Export/android/haxe/release.hxml -D android -D android-9
[LOG]  - Changing directory: Export/android/obj
[LOG]  - Running command: haxelib run hxlibc Build.xml -Dandroid -Dandroid-9 -Dtools=1.1.6 -Dnme -Dopenfl=1.1 -Dnme_install_tool
[LOG]  - Changing directory: Export/android/bin
[LOG]  - Running command: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk/apache-ant//bin/ant release
[LOG] Buildfile: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robot\Export\android\bin\build.xml
[LOG] -set-mode-check:
[LOG] -set-release-mode:
[LOG] -release-obfuscation-check:
[LOG]      [echo] proguard.config is ${proguard.config}
[LOG] -pre-build:
[LOG] -check-env:
[LOG]  [checkenv] Android SDK Tools Revision 22.0.0
[LOG]  [checkenv] Installed at C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows
[LOG] -setup:
[LOG]      [echo] Project Name: Robot
[LOG]   [gettype] Project Type: Application
[LOG] -build-setup:
[LOG] [getbuildtools] Using latest Build Tools: 19.0.0
[LOG]      [echo] Resolving Build Target for Robot...
[LOG] [gettarget] Project Target:   Android 4.1.2
[LOG] [gettarget] API level:        16
[LOG]      [echo] ----------
[LOG]      [echo] Creating output directories if needed...
[LOG]     [mkdir] Created dir: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robot\Export\android\bin\gen
[LOG]      [echo] ----------
[LOG]      [echo] Resolving Dependencies for Robot...
[LOG] [dependency] Library dependencies:
[LOG] [dependency]
[LOG] [dependency] ------------------
[LOG] [dependency] Ordered libraries:
[LOG]      [echo] ----------
[LOG]      [echo] Building Libraries with 'release'...
[LOG] nodeps:
[LOG] -set-mode-check:
[LOG] -set-release-mode:
[LOG] -release-obfuscation-check:
[LOG]      [echo] proguard.config is ${proguard.config}
[LOG] -pre-build:
[LOG] -check-env:
[LOG]  [checkenv] Android SDK Tools Revision 22.0.0
[LOG]  [checkenv] Installed at C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows
[LOG] -setup:
[LOG]      [echo] Project Name: OpenFLExtension
[LOG]   [gettype] Project Type: Android Library
[LOG] -build-setup:
[LOG] [getbuildtools] Using latest Build Tools: 19.0.0
[LOG]      [echo] Resolving Build Target for OpenFLExtension...
[LOG] [gettarget] Project Target:   Android 4.1.2
[LOG] [gettarget] API level:        16
[LOG] [gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[LOG]      [echo] ----------
[LOG]      [echo] Creating output directories if needed...
[LOG]      [echo] ----------
[LOG]      [echo] Resolving Dependencies for OpenFLExtension...
[LOG] [dependency] Library dependencies:
[LOG] [dependency] No Libraries
[LOG] -code-gen:
[LOG] [mergemanifest] Found Deleted Target File
[LOG] [mergemanifest] Merging AndroidManifest files into one.
[LOG] [mergemanifest] Manifest merger disabled. Using project manifest only.
[LOG]      [echo] Handling aidl files...
[LOG]      [aidl] No AIDL files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling RenderScript files...
[LOG] [renderscript] No RenderScript files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling Resources...
[LOG]      [aapt] Found new input file
[LOG]      [aapt] Generating resource IDs...
[LOG]      [echo] ----------
[LOG]      [echo] Handling BuildConfig class...
[LOG] [buildconfig] Generating BuildConfig class.
[LOG] -pre-compile:
[LOG] -compile:
[LOG] BUILD FAILED
[LOG] C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:598: The following error occurred while executing this line:
[LOG] C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:713: The following error occurred while executing this line:
[LOG] C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:727: Class not found: javac1.8
[LOG] Total time: 1 second
[LOG] Finished building for Android (or errored out): 1
[LOG] Action: Generate Logs
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_0849_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_0849_PM.log
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_0853_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_0853_PM.log
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_0856_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_0856_PM.log
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_0858_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_0858_PM.log
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_0931_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_0931_PM.log
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_0946_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_0946_PM.log
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_1015_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_1015_PM.log
[LOG] Copy file from: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\logs\05-16-2014_1035_PM.log to: C:\Users\Ilia\stencylTempLogs\05-16-2014_1035_PM.log
[LOG] Write String out as file to: C:\Users\Ilia\stencylTempLogs\Config.log

Jon

  • *
  • Posts: 17524
You have Java 7 installed. You need to install Java 6 (and remove all later versions of Java).

http://community.stencyl.com/index.php/topic,30256.0.html

cobanja

  • Posts: 5
Yes, thanks. That bug had gone, but there appeared another:

[LOG] -post-compile:
[LOG] -obfuscate:
[LOG] -dex:
[LOG]       [dex] input: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\classes
[LOG]       [dex] input: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\deps\extension-api\bin\classes.jar
[LOG]       [dex] input: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\libs\GoogleAdMobAdsSdk-6.4.1.jar
[LOG]       [dex] Pre-Dexing C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\deps\extension-api\bin\classes.jar -> classes-e8b6a6189803ba53b69373d4365885b0.jar
[LOG]       [dex] Using Pre-Dexed GoogleAdMobAdsSdk-6.4.1-d4033ecfa9b4546bdcdce08e0d5dd594.jar <- C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\libs\GoogleAdMobAdsSdk-6.4.1.jar
[LOG]       [dex] Converting compiled files and external libraries into C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\classes.dex...
[LOG]        [dx] Merged dex A (57 defs/64,2KiB) with dex B (5 defs/5,3KiB). Result is 62 defs/80,9KiB. Took 0,3s
[LOG]        [dx] Merged dex A (62 defs/80,9KiB) with dex B (197 defs/545,5KiB). Result is 259 defs/773,4KiB. Took 0,6s
[LOG] -crunch:
[LOG]    [crunch] Crunching PNG Files in source dir: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\res
[LOG]    [crunch] To destination dir: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res
[LOG]    [crunch] Processing image to cache: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\res\drawable-hdpi\icon.png => C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-hdpi\icon.png
[LOG]    [crunch]   (processed image to cache entry C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-hdpi\icon.png: 77% size of source)
[LOG]    [crunch] Processing image to cache: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\res\drawable-ldpi\icon.png => C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-ldpi\icon.png
[LOG]    [crunch]   (processed image to cache entry C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-ldpi\icon.png: 0% size of source)
[LOG]    [crunch] Processing image to cache: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\res\drawable-mdpi\icon.png => C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-mdpi\icon.png
[LOG]    [crunch]   (processed image to cache entry C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-mdpi\icon.png: 0% size of source)
[LOG]    [crunch] Processing image to cache: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\res\drawable-xhdpi\icon.png => C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-xhdpi\icon.png
[LOG]    [crunch]   (processed image to cache entry C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-xhdpi\icon.png: 93% size of source)
[LOG]    [crunch] Processing image to cache: C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\res\drawable-xhdpi\ouya_icon.png => C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-xhdpi\ouya_icon.png
[LOG]    [crunch]   (processed image to cache entry C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\games-generated\Robotseye\Export\android\bin\bin\res\drawable-xhdpi\ouya_icon.png: 94% size of source)
[LOG]    [crunch] Crunched 5 PNG files to update cache
[LOG] -package-resources:
[LOG]      [aapt] Creating full resource package...
[LOG] -package:
[LOG] [apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[LOG] [apkbuilder] Creating Robotseye-release-unsigned.apk for release...
[LOG] -post-package:
[LOG] -release-prompt-for-password:
[LOG] -release-nosign:
[LOG] -release-sign:
[LOG]      [echo] Signing final apk...
[LOG] BUILD FAILED
[LOG] C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:1132: The following error occurred while executing this line:
[LOG] C:\Users\Ilia\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:1144: Signing key Ogeo not found
[LOG] Total time: 21 seconds

cobanja

  • Posts: 5
Yes, it's solved. I changed android certificate, and the game was built. Thanks!