So I uninstalled and reinstalled the Android SDK (no Studio) and I could then build an empty, dummy MMF file. The empty file did not work before but I have been messing around changing build API release and folder locations etc so it may have been that.
My main file would still not build but I tracked this down to the InApp purchase object. I've not set this up properly yet and had just copied the code from another app that already worked, and changed the names. So I've deleted that for now and it seems to work again.
I should mention that my InApp purchase code has not changed since my last beta release, which I did managed to build and upload to the play store, so clearly something appears to have changed with the latest Android API or the way it works with MMF.
But I'm OK for now and will look into this later.
Users that cannot build with Android Studio (ant\build.xml error)
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.
-
-
Perry,
Thanks for the info. I tried to follow your directions, but ran into problems. I was able to install the software and API 24. That did not work, just gave me a different error when compiling the Android app. I then downloaded the Android studio which was a mistake - did not help at all.
Thankfully I remembered I went through all of this on my old computer and was able to compile the app their - it runs Win 7 instead of Win 10. I wonder if the problem is with Win10?
I do need to get this working on my new computer but can wait a while to tackle it later.
Thanks again,
Steve -
Thanks so much for this information! I'm still having some issues however, I'm getting this error...
QuoteBuildfile: C:\Users\NoName\AppData\Local\Temp\AndD7B6.tmp\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[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: 27.0.3
[echo] Resolving Build Target for RuntimeAndroid...BUILD FAILED
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:538: Unable to resolve project target 'android-17'Total time: 0 seconds
I'll admit up front, I'm not an android developer, and this is my first time using CF (so maybe I have a setting checked that shouldn't be). I was pulling my hair out trying to figure out this SDK thing until I came to this thread, so that's one problem solved. Is this something CF will be addressing (if anyone knows), the removal of the ant folder by google.
Thanks in advance for any help!
-
Seems like you have it set for API17 and you don't have that installed.
Try changing that to the version you have installed with the SDK Manager (21 and up) -
Seems like you have it set for API17 and you don't have that installed.
Try changing that to the version you have installed with the SDK Manager (21 and up)I just figured it out and was coming here to post it. You're absolutely right, I didn't have the appropriate API installed. I've installed thema and I'm good to go now! Thanks so much for the help!
-
Ok, but what if I need new version of api with android studio? I belive that ClickTeam should update android exporter to avoid this error and make it compatible with new version of sdk
-
will CTF2.5 "EVER" support the original Android Studio with original Android SDK wich is Studio download as default?
-
Every time I see
Cannot find C:\Users\xxxxx\AppData\Local\Android\sdk\buil d-tools\tools\ant\build.xml people are using Android Studio.
The latest version, doesn't support Fusion, since it's deleting the Ant folder.
Either find the version from 2 years ago,or
remove Android studio and download these 2 and install API 24Please login to see this link.
on that pageWindows x86 189.36 MB jdk-8u121-windows-i586.exe (There might be a newer version)
and the SDK: Please login to see this link.
once you you install the SDK, start the manager and download the API's
yes this one works. I kept Java as is but only re-installed downgrade Android SDK from the links you provide.
thanks.hope Clickteam fix this
-
Alperoz49, I'm struggling with this right now myself. I've uninstalled Android Studio, but I still get the "Cannot find..." error. Are you saying you uninstalled the Android SDK Manager, then reinstalled it from the links Perry provided and that fixed the problem for you? Did you install the API 24 like he suggested? I've had both the Android Studio AND the Android SDK Manager installed until I recently uninstalled the Android Studio. I just keep getting the same error:
Buildfile: C:\Users\ROBBEN~1\AppData\Local\Temp\And23C.tmp\build.xmlBUILD FAILED
C:\Users\ROBBEN~1\AppData\Local\Temp\And23C.tmp\build.xml:84: Cannot find C:\Android\tools\tools\ant\build.xml imported from
C:\Users\ROBBEN~1\AppData\Local\Temp\And23C.tmp\build.xmlTotal time: 0 seconds
I'd appreciate any help or advice you can give me. Thanks!
-
Did you update the paths in the Fusion preferences to where the SDK and JRE is installed?
-
Hello - Thanks for your help. However, after doing what you said above, I now get the following message at the end of the log files...
Are these from program commands that are incompatible with Android exporter? Thanks.
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 -
It's hard to say. This error is different.
What API are you using, does it exist. do you have the full API.
What is the beginning part of the log. -
Another thing you should try is the uninstallation of the Java/JDK components and then reinstall everything with the JDK installer from the Oracle page.
-
Thanks for your time. I uninstalled Android Studio and installed the two files from the links in your post.
I am using Build Tools 27.0.3 API level:19
However, my APK build still fails. The log file is lengthy, but the part about the failure is below...
========================================
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
========================================
Do you know how I can fix this?
Thanks again - Rich -
Install the files from the first post.
download the API's needed
UPDATE the path in Fusion to the downloaded ones.Android Studio doesn't have the tools\ant that's why.
-
This is Perry's thread(I think you confused me with him by accident).
However it's always better to post the whole error log - the part before the Build Failed message might contain additional information to better spot the problem.
Other idea: Did you try another API level yet - 21 or 25? API 19 is pretty much obsolete now, although it shouldn't lead to this type of error in Fusion in any case.
Alternatively you can try the java + sdk manager instructions in the CF2.5 Steam Guide section - perhaps something is messed up with your previous setup and it might help to get things resolved if you go through the various steps again. -
Hmmm... sorry. I thought I was talking to whoever gave the links to solve the "Andoid Studio" problem. I have trouble telling who is talking to who on here.
Anyway, thanks again for your time and patience.
Here is the whole log from the Build attempt...
Again I downloaded installer_"r24.4.1-windows.exe" and "jdk-8u171-windows-i586.exe" and installed both. Left everything at defaults.
I updated the API to most recent and build failed. So, I backed it down to API 19 level 19.
The app is a simple things with a ball bouncing around on a screen and an end app button. There are some textual graphics.
Thanks - again. - Rich
============================================
Buildfile: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\build.xml-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[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: 27.0.3
[echo] Resolving Build Target for RuntimeAndroid...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\bin
[mkdir] Created dir: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\bin\res
[mkdir] Created dir: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\bin\rsObj
[mkdir] Created dir: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\bin\rsLibs
[mkdir] Created dir: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\gen
[mkdir] Created dir: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\bin\classes
[mkdir] Created dir: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\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...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.-pre-compile:
-compile:
[javac] Compiling 377 source files to C:\Users\Rich\AppData\Local\Temp\And7721.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\Rich\AppData\Local\Temp\And7721.tmp\bin\classes
[dex] input: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\libs\android-support-v4.jar
[dex] input: C:\Users\Rich\AppData\Local\Temp\And7721.tmp\libs\zip_file.jar
[dex] Pre-Dexing C:\Users\Rich\AppData\Local\Temp\And7721.tmp\libs\android-support-v4.jar -> android-support-v4-5386918fbca10b2eb0bd2271af4c36f3.jar
[dx] java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 51.0
[dx] at java.lang.ClassLoader.defineClass1(Native Method)
[dx] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[dx] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[dx] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[dx] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[dx] at java.security.AccessController.doPrivileged(Native Method)
[dx] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[dx] at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[dx] Could not find the main class: com.android.dx.command.Main. Program will exit.
[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: 1Total time: 11 seconds
================================================ -
Again,
Did you update the Android Path in the preferences so that they are pointing NOT to the Android studio.
Also select 3.4 as min and 7.1 as Max.
And most of them you need to go higher than API 21 -
Perry - Yes, I have the paths correctly listed in my preferences.
I'm not sure what you mean by "Also select 3.4 as min and 7.1 as Max."
Is that in the SDK Manager somewhere? -
If you want I can do a Teamviewer Session with you, and show you what needs to be done.
And I will get you up and running in no time
Just shoot me a PM if interested with the ID and password -
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!