User Tag List

Results 1 to 3 of 3

Thread: Build failed Android

  1. #1
    Clicker

    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Melubnio's Avatar
    Join Date
    Mar 2016
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Build failed Android

    I tried many times to change the API and the Java version but still get that "build failed".

    Buildfile: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \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 25.2.2
    [checkenv] Installed at C:\Program Files (x86)\Android\android-sdk

    -setup:
    [echo] Project Name: RuntimeAndroid
    [gettype] Project Type: Application

    -build-setup:
    [getbuildtools] Using latest Build Tools: 24.0.3
    [echo] Resolving Build Target for RuntimeAndroid...
    [gettarget] Project Target: Android 6.0
    [gettarget] API level: 23
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin
    [mkdir] Created dir: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin\res
    [mkdir] Created dir: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin\rsObj
    [mkdir] Created dir: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin\rsLibs
    [mkdir] Created dir: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \gen
    [mkdir] Created dir: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin\classes
    [mkdir] Created dir: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin\dexedLibs
    [echo] ----------
    [echo] Resolving Dependencies for RuntimeAndroid...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [echo] ----------
    [echo] Building Libraries with 'release'...
    [subant] No sub-builds to iterate on

    -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 374 source files to C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin\classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

    -post-compile:

    -obfuscate:

    -dex:
    [dex] input: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \bin\classes
    [dex] input: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \libs\library.jar
    [dex] input: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \libs\android-support-v4.jar
    [dex] input: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \libs\zip_file.jar
    [dex] input: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \libs\zbar.jar
    [dex] input: C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \libs\downloader_library.jar
    [dex] Pre-Dexing C:\Users\Melubnio~1\AppData\Local\Temp\AndB93E.tmp \libs\library.jar -> library-b8c1163498e524d4dae24e7a8b48a8b9.jar
    [dx] java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
    [dx] at java.lang.ClassLoader.defineClass1(Native Method)
    [dx] at java.lang.ClassLoader.defineClass(ClassLoader.java :800)
    [dx] at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:142)
    [dx] at java.net.URLClassLoader.defineClass(URLClassLoader .java:449)
    [dx] at java.net.URLClassLoader.access$100(URLClassLoader. java:71)
    [dx] at java.net.URLClassLoader$1.run(URLClassLoader.java: 361)
    [dx] at java.net.URLClassLoader$1.run(URLClassLoader.java: 355)
    [dx] at java.security.AccessController.doPrivileged(Native Method)
    [dx] at java.net.URLClassLoader.findClass(URLClassLoader.j ava:354)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:4 25)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:4 12)
    [dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:3 58)
    [dx] at sun.launcher.LauncherHelper.checkAndLoadMain(Launc herHelper.java:482)
    [dx] Exception in thread "main"

    BUILD FAILED
    C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
    C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
    C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
    C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:283: null returned: 1

    Total time: 6 seconds


    Can someone help me? Ps. I followed Sparckman's tutorial.

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,359
    Mentioned
    218 Post(s)
    Tagged
    4 Thread(s)
    Latest version of api from Google does require Java SDK 8, please uninstall version 7 and reinstall 8, don't forget to change your preferences inside FUSION editor.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker

    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Melubnio's Avatar
    Join Date
    Mar 2016
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much! The problem was the Java 8 version as you said! Also, thanks for your fast reply.

Similar Threads

  1. Replies: 56
    Last Post: 26th December 2017, 09:53 PM
  2. Help: Android build failed?
    By King_Cool in forum Android Export Module 2.5
    Replies: 2
    Last Post: 30th January 2016, 02:44 AM
  3. Android build failed to generate apk
    By ramyhakam in forum Android Export Module 2.5
    Replies: 8
    Last Post: 26th January 2015, 11:40 PM
  4. build failed (sometimes)
    By gagegage926 in forum Android Export Module 2.5
    Replies: 9
    Last Post: 14th August 2014, 09:21 AM
  5. [RC7] BUILD FAILED
    By Pharanygitis in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 29th March 2013, 02:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •