Error to export on Android (APK)

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello

    I have installed Fusion 2.5 Developer (Bulid 286.6) (Unicode) and Exporter to Android, Java JDK, Android SDK.
    Before I did not have problems with export apk file.
    I picked up a new Windows 7 32-bit on the computer and I have everything I need to have installed.

    Please HELP !!!!!! ( This is my games and I need to upload but cant export :( ( Please login to see this link. )

    It appears to me this error:


    Buildfile: C:\Users\Salih\AppData\Local\Temp\And881D.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\Android\android-sdk

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

    -build-setup:
    [getbuildtools] Using latest Build Tools: 24.0.2
    [echo] Resolving Build Target for RuntimeAndroid...
    [gettarget] Project Target: Android 4.3.1
    [gettarget] API level: 18
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\bin
    [mkdir] Created dir: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\bin\res
    [mkdir] Created dir: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\bin\rsObj
    [mkdir] Created dir: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\bin\rsLibs
    [mkdir] Created dir: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\gen
    [mkdir] Created dir: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\bin\classes
    [mkdir] Created dir: C:\Users\Salih\AppData\Local\Temp\And881D.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\Salih\AppData\Local\Temp\And881D.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\Salih\AppData\Local\Temp\And881D.tmp\bin\classes
    [dex] input: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\libs\library.jar
    [dex] input: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\libs\android-support-v4.jar
    [dex] input: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\libs\zip_file.jar
    [dex] input: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\libs\zbar.jar
    [dex] input: C:\Users\Salih\AppData\Local\Temp\And881D.tmp\libs\downloader_library.jar
    [dex] Pre-Dexing C:\Users\Salih\AppData\Local\Temp\And881D.tmp\libs\library.jar -> library-2aec5f00e80ea2f26ffcd2f5d1ca8044.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(SecureClassLoader.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.java:354)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
    [dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    [dx] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
    [dx] Exception in thread "main"

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

    Total time: 6 seconds

  • I installed java 8 but dont help

    BUILD FAILED
    C:\Program Files\Android\android-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
    C:\Program Files\Android\android-sdk\tools\ant\build.xml:730: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "C:\Program Files\Java\jre1.8.0_101"

  • Quote

    Unable to find a javac compiler;

    something went wrong with the installation

    it does not find the javac compiler , also did you check if inside preferences in editor (menu tools->preferences) java sdk path point correctly to the one installed?

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Quote

    It is currently set to "C:\Program Files\Java\jre1.8.0_101"

    It should point to JDK not JRE.

    Try this:
    Open Command Prompt (Start > Type 'CMD' <press enter>) without the quotes.

    In the Command Prompt box type:

    cd c:\ <press enter>

    then type:

    dir /b /s java.exe <press enter>

    and it should list all the locations of java.exe regardless of your JAVA_HOME variable. Let us know the result.

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • This is results :)

    c:\Program Filed\Java\Jdk1.7.0\bin\java.exe
    c:\Program Filed\Java\Jdk1.7.0\jre\bin\java.exe
    c:\Program Filed\Java\Jdk1.7.0_79\bin\java.exe
    c:\Program Filed\Java\Jdk1.7.0_79\jre\bin\java.exe
    c:\Program Filed\Java\Jdk1.8.0_101\bin\java.exe
    c:\Program Filed\Java\jre7\bin\java.exe
    c:\ProgramData\Oracle\Java\javapath\java.exe
    c:\User\All Users\Oracle\Java\javapath\java.exe
    c:Windows\System32\java.exe

  • It appears you have 7 installed and Java 8 installed. Uninstall both and just install Java 8 from Please login to see this link. (Windows)

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • I just picked up the Android Exporter yesterday and ran in to a similar issue (i.e. build error). I knew that I had all of the proper required software installed as I've dabbled a bit with Android Studio. In my Fusion settings, I had the same setting as you for the JDK directory. The only thing I changed to get it working was set it to bin. That is:

    C:\Program Files\Java\jdk1.7.0_79\bin

    In the bin directory you'll find java.exe.

    Please login to see this link.

  • Hi,

    I also have this issue since upgrading to Fusion dev 286.6. I have always used API 14 with Java 6.45 and have never had an issue before this update. I decided to re-install the Android Exporter version 282.2 which was my last known working version and no issues exporting.

    If I use all the latest versions and export a blank APK there is no problem on API 14. If I try to use the next working API however my games have issues with music and some sounds which don't play. The music volume will start to play at the end of the level during fade out (strangely the music volume jumps to 100 and then starts to fade). Mostly my sounds use different channels depending on which enemy/player or type of movement/attack and one channel is used for the music. Not many are used at all and is limited but again I never had an issue until the latest update.

    Any suggestions?

    Please login to see this link.

  • Fusion 2.5 supports API 22 now. I highly recommend using the latest API level... Give it a shot and let me know what you get.

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Thanks Danny but just tried with API 22 and the latest version of fusion/Android export and although I can export there is no music. If I revert back to API 14 and the older android export I have no issues. Any other suggestions?

    Edit: Oh wait... I have it working perfectly now on API 22. I just had to change the Android SDK tools version I was using.

    Please login to see this link.

    Edited once, last by rndpro (October 1, 2016 at 9:06 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!