User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Error when Trying to build an Android. Tried EVERYTHING.

  1. #1
    No Products Registered

    Join Date
    Jun 2015
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Error when Trying to build an Android. Tried EVERYTHING.

    Hello Esteemed members of Clickteam,

    I'm going to be working at a camp that will be utilizing your Clickteam Fusion 2.5 program to design games, but I'm having an issue with building an APK from an MFA I developed. I have downloaded the JDK 8 update 45 and the latest version of the Android SDK with Android 5.1 (API 22), and I have provided their locations in the tools section of the Fusion Tabs. I set the Build Type to Android/Ouya and set the API to 22 in the Android Tab of the MFA. Once all this was completed, I clicked File -> Build -> Application and expected a new APK to appear after selecting the save location, but these errors came in its stead:

    image.jpg
    image (1).jpg

    I do not know what they mean as I cannot find the Java file that they are referencing. I have tried many thing to fix these errors: restarting my computer, un then re-installing Fusion, JDK and Android SDK multiple times, performing a Disk Cleanup and Disk Error Check, and updating my Operating system, but none of them have yielded any results. I have run out of ideas for as to what could be causing this, but I know it's nothing to do with my MFA, as someone else got it to build on their computer. My Computer is an hp pavillion g6 running on windows 8.1 as of last night. If anyone can provide me with some help, It would be great!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,343
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Hi and welcome!
    Have you ran Android SDK Manager and installed all the required builds?

  3. #3
    No Products Registered

    Join Date
    Jun 2015
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Popcorn,

    Yes, I ran the SDK Manager and installed the tools and Android 5.1 (API 22) along with every other file available in the manager, just for precautionary measure.

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,822
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)
    Is it just this MFA or every APK you build.

    I will have to research but I thought I heard something about Java 8 not being good ... or was it working good?
    Its hard to remember with Java there is always something.

  5. #5
    No Products Registered

    Join Date
    Jun 2015
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Jeff,

    Sorry I should have elaborated, the APK build doesn't work for any MFA that I use. Not even a blank frame. And I have had the same java throughout this ordeal, so it's quality hasn't changed. Do you think I should get an earlier JDK?

  6. #6
    No Products Registered

    Join Date
    Jun 2015
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Addendum: I've tried to change the API from 22 to an earlier version and the errors continue to persist. I've also noticed that some other related posts on this site have example of system logs that go into detail about the different errors they come across, I don't know where to find this log, but If I can find it, would It be helpful in trying to solve the initial problem at the start of this thread?

  7. #7
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,323
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    When you compile, you get the popup that it failed, and it will ask you if you want to see the log file.
    Just copy/paste the log.. if it's really too bug that copy the top section and the bottom section of the log, where it mention what is failing.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    paobrasil's Avatar
    Join Date
    Apr 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at the API are you using.

    If it's 22...go to SDK Manager and search for everything that it's about API 22 and sdk manager general (android sdk build-tools and extras folder) , mark and update....when it finishes, close the SDK and open again, wait for the check if are some new api22 updates..

    Sometimes you update the SDK and think that now it's everything up to date, but no, sometimes just when you finish to update the sdk manager, close and open again, you check that are new updates avaliable

  9. #9
    No Products Registered

    Join Date
    Jun 2015
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, so I fixed the first two errors by updating Fusion 2.5, but now this appeared:

    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_45\lib\tools.jar
    Buildfile: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\build.xml

    -set-mode-check:

    -set-debug-files:

    -check-env:
    [checkenv] Android SDK Tools Revision 24.3.2
    [checkenv] Installed at C:\Program Files (x86)\Android\android-sdk

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

    -set-debug-mode:

    -debug-obfuscation-check:

    -pre-build:

    -build-setup:
    [getbuildtools] Using latest Build Tools: 23.0.0 rc2
    [echo] Resolving Build Target for RuntimeAndroid...
    [gettarget] Project Target: Android 5.0.1
    [gettarget] API level: 21
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\bin
    [mkdir] Created dir: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\bin\res
    [mkdir] Created dir: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\bin\rsObj
    [mkdir] Created dir: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\bin\rsLibs
    [mkdir] Created dir: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\gen
    [mkdir] Created dir: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\bin\classes
    [mkdir] Created dir: C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380.t mp\bin\dexedLibs
    [echo] ----------
    [echo] Resolving Dependencies for RuntimeAndroid...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [echo] ----------
    [echo] Building Libraries with 'debug'...
    [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...

    BUILD FAILED
    C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:649: The following error occurred while executing this line:
    C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:694: Execute failed: java.io.IOException: Cannot run program "C:\Users\ANDREW~1.BAR\AppData\Local\Temp\AndE380. tmp\${aapt}": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at org.apache.tools.ant.taskdefs.launcher.Java13Comma ndLauncher.exec(Java13CommandLauncher.java:58)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execu te.java:428)
    at org.apache.tools.ant.taskdefs.Execute.execute(Exec ute.java:442)
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute( ExecTask.java:628)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(Exe cTask.java:669)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(Exe cTask.java:495)
    at com.android.ant.AaptExecTask.execute(AaptExecTask. java:703)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(S equential.java:68)
    at com.android.ant.IfElseTask.execute(IfElseTask.java :120)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(S equential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execut e(MacroInstance.java:396)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:43 5)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:456)
    at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Projec t.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher. java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher .java:109)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 47 more

    Total time: 2 seconds

    I think I'm still missing files, but what do you at clickteam think?

  10. #10
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,323
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    I had this error too.
    And that was caused by having an event with an object that didn't exist.
    (I had removed my Admob, and left an event ) which was giving me the same errors.

    MAKE sure you have no items in your events that has an little arrow in the corner.


    and you know that for sure, if you create a Blank project, and compile it..
    if that went ok, then you have most likely an event with an object that doesn't exist.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 56
    Last Post: 26th December 2017, 08:53 PM
  2. Android Build Error
    By dsilvers in forum Android Export Module Version 2.0
    Replies: 21
    Last Post: 28th February 2014, 12:22 AM
  3. build application android error.
    By daniele in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 21st November 2013, 01:27 PM
  4. Android Build Error
    By dsilvers in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd April 2013, 01:51 AM
  5. Trying Android again... getting error 83 on build
    By Tuna in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 20th January 2013, 04:33 PM

Tags for this Thread

Posting Permissions

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