User Tag List

Results 1 to 6 of 6

Thread: Android APK build failed (ant/build.xml missing) | Fusion 2.5 BUILD294.10

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jan 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Android APK build failed (ant/build.xml missing) | Fusion 2.5 BUILD294.10

    It seems a frequent problem in the past but after a long-time come-back I installed the latest build of Fusion (R294.10) After installed everything whatīs necessary to build APK files I still get the following error message:

    Buildfile: C:\Users\ff87\AppData\Local\Temp\AndE4B9.tmp\build .xml

    BUILD FAILED
    C:\Users\ff87\AppData\Local\Temp\AndE4B9.tmp\build .xml:83: Cannot find C:\Users\ff87\AppData\Local\Android\sdk1\tools\ant \build.xml imported from C:\Users\ff87\AppData\Local\Temp\AndE4B9.tmp\build .xml

    Total time: 0 seconds

    I tried different solutions posted here in the forum (Android Studio, latest version, then older version 2017, different directories for SDK and JDK) but couldnīt manage it. Does anyone has a clearly described instruction how to solve this issue?
    Itīs frustrating not to be able to start making some littles apps and testings because of this "little thing".

    Looking forward to hear from you soon.

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleFirefly 3D Module
    tobydavis's Avatar
    Join Date
    Apr 2019
    Location
    United States
    Posts
    131
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ff87 View Post
    It seems a frequent problem in the past but after a long-time come-back I installed the latest build of Fusion (R294.10) After installed everything whatīs necessary to build APK files I still get the following error message:

    Buildfile: C:\Users\ff87\AppData\Local\Temp\AndE4B9.tmp\build .xml

    BUILD FAILED
    C:\Users\ff87\AppData\Local\Temp\AndE4B9.tmp\build .xml:83: Cannot find C:\Users\ff87\AppData\Local\Android\sdk1\tools\ant \build.xml imported from C:\Users\ff87\AppData\Local\Temp\AndE4B9.tmp\build .xml

    Total time: 0 seconds

    I tried different solutions posted here in the forum (Android Studio, latest version, then older version 2017, different directories for SDK and JDK) but couldnīt manage it. Does anyone has a clearly described instruction how to solve this issue?
    Itīs frustrating not to be able to start making some littles apps and testings because of this "little thing".

    Looking forward to hear from you soon.

    As far as I'm aware, Ant isn't even used by the Android SDK anymore, Gradle is, so I'm not sure why you're getting an Ant-related error.

    First off, you should go back to using the latest version of Android Studio if you aren't already.

    Secondly, make sure that you have both your JDK paths and Android SDK directories defined in the General section of the Preferences menu (this can be found under the Tools section in the top menu bar). I currently have the latest Android studio and Java Development Kit version 1.8.0_202 and things work fine. Anything Java JDK 8 and up should work for you. Your Android SDK will install to the C:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk directory and the Java JDK (assuming you are on a 64-bit system and installed the 64-bit JDK) will install to the C:\Program Files\Java\jdk+VERSION_NUMBER directory.

    If none of this works, try re-installing the latest Fusion update again by clicking "Check for updates" in the Help section of the top menu bar and confirm that you want to re-download the latest update patch. If you installed the Android exporter after you installed the latest build of Fusion, then the exporter itself may be out-of-date. Re-downloading the update patch updates everything in the program, including installed exporters.

    Please let me know if any of this helps.

    android_exporter_paths.PNG

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jan 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help.

    Well, I found out that building the apk works when I choose API 29 but the latest one is 33, choosing that leads to errors. What could be the reason? I updated everything via Android Studio.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleFirefly 3D Module
    tobydavis's Avatar
    Join Date
    Apr 2019
    Location
    United States
    Posts
    131
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ff87 View Post
    Thanks for your help.

    Well, I found out that building the apk works when I choose API 29 but the latest one is 33, choosing that leads to errors. What could be the reason? I updated everything via Android Studio.
    I actually get errors when building to API level 33 myself. Could you tell me which version of Java you have installed? I would also try Java JDK 12 and 17 for building to API level 33 if you haven't already.

  5. #5
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    349
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tobydavis View Post
    I actually get errors when building to API level 33 myself. Could you tell me which version of Java you have installed? I would also try Java JDK 12 and 17 for building to API level 33 if you haven't already.
    Hi , i've updated Android Studio and then have the same problem, i used JDK 11 and it's working now with API 33; 4.4 mini and target 12.0
    prefs.png

    Regards

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Aug 2019
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Gigatron View Post
    Hi , i've updated Android Studio and then have the same problem, i used JDK 11 and it's working now with API 33; 4.4 mini and target 12.0
    prefs.png

    Regards
    Thanks dude, you saved me a lot of time. Thanks to this Java version (jdk-11.0.17) I can build it with API 33 and android 12.0 ; nothing else worked for me.

Similar Threads

  1. Android app Failed to build
    By Tisnart in forum Android Export Module 2.5
    Replies: 37
    Last Post: 9th January 2022, 11:35 PM
  2. Build 293.1 Android Build failed with an exception.
    By piki in forum Android Export Module 2.5
    Replies: 20
    Last Post: 27th November 2021, 04:17 PM
  3. Failed to build Android .apk
    By mrknd94 in forum Android Export Module 2.5
    Replies: 4
    Last Post: 21st July 2020, 01:17 PM
  4. Help: Android build failed?
    By King_Cool in forum Android Export Module 2.5
    Replies: 2
    Last Post: 30th January 2016, 01:44 AM

Posting Permissions

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