Android SDK Location

AnswerStackCategory: Mobile DevelopmentAndroid SDK Location
Martin Fisher asked 5 years ago

Hi,
I’m trying to get the Android exporter up and running – but get the following error:

Buildfile: H:\Tmp\AndAAB4.tmp\build.xml
BUILD FAILED
H:\Tmp\AndAAB4.tmp\build.xml:84: Cannot find e:\Users\Martin\AppData\Local\Android\sdk\tools\ant\build.xml imported from H:\Tmp\AndAAB4.tmp\build.xml
Total time: 0 seconds

I’ve pulled the SDK directory from AndroidStudio SDK manager – which will happily install new SDK versions and updates to the directory – but cannot get Fusion to work with this (indeed I can’t get Android Studio working ‘correctly’ – but can get B4A working AOK)
Any suggestions as to how to fix this – I’ve tried reinstalling the Android SDK (and AndroidStudio) – while I still have some hair left gratefully received.
 
Martin

5 Answers
djfuego answered 5 years ago

Hi Martin,
Did this used to work? I’m not sure if we have all the info here. When you run the androidsdk manager to decide on the versions of Android you will be installing the SDK for what tickboxes have you selected? Have you excluded this android %appdata% folder from your Antivirus scanner because the error looks like it can’t find the file or doesn’t have access to this file. Are you running this builder under Windows?
 
Cheers
 

Martin Fisher answered 5 years ago

Hi.
Strange – I’d posted a reply shortly after your answer here – not sure where that went?
So – yes, it did work, I’d not used it for a while.  I’d installed AndroidStudio in the interim (previously used Eclipse).  I’ve installed several SDKs using the manager (8 to 5 inclusive) and the tools.  I can’t find the files that Fusion is searching for (using windows search) – but I’m not sure what I need to install either, I also installed the standalone SDK tools package (from https://developer.android.com/studio/releases/platform-tools
I’m running Windows 10.
Martin 
 

Danny Staff answered 5 years ago

Hey Guys,
There was an issue with the latest release of Android tools which caused issues with Fusion/Android exporter. Fernando has released a patch which you can download over at the Clickteam forums. I too had this issue but the patch fixed it immediately.

Martin Fisher answered 5 years ago

Thanks Danny,
That progressed me a bit – I reinstalled the JDK and SDK to new directories and then tried again with Fusion.
After pointing Fusion at these – I got an error – ‘Can’t Find Tools.Jar’ – but compilation proceeded until another error (Can’t find Javac.exe) – Does JAVA_HOME point at the correct directory (In this case pointing at the JDK directory I had created)
Trying to change JAVA_HOME – where is this set (modifying in Windows Environment Variables doesn’t seem to change the value in Fusion?) – move the JDK variable in Fusion to point to a a newer version (where Javac does exist)
Changed SDK managers details – reinstall everything (it had a different target for the JDK & SDK directories) – I’ll report back
 
Is it just me – or is the Android development environment a bit of a mess?  I’ve installed it several times over the years (and have got AGK running, B4A and Eclipse as well as Fusion in the past) and have failed to get Visual Studio working, Android Studio and Fusion working correctly (for example – VS/Android Studio will compile their demo programs – but when I include my own files (or AGK files) then things stop working)
I appreciate this isn’t ClickTeam’s making – but a combination of MS  / Google – but if someone came up with a foolproof (ie straightforward) installer for the Android tools then they would get my vote (& cash)
For the record – B4A & Fusion have the simplest install procedures (which should work easily – and yes I see the irony here) AGK (native) & Android Studio less so…
Then changed target to 22 and now get 

BUILD FAILED
E:\Java8SDK\tools\ant\build.xml:716: The following error occurred while executing this line:
E:\Java8SDK\tools\ant\build.xml:730: Compile failed; see the compiler error output for detail.

 
Now just need to find where the compiler hides it’s output file and we’re golden?
Martin

Martin Fisher answered 5 years ago

Another step forward (sideways?)

Buildfile: H:\Tmp\AndD919.tmp\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at E:\Java8SDK
-setup:
[echo] Project Name: RuntimeAndroid
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 28.0.3
[echo] Resolving Build Target for RuntimeAndroid…
[gettarget] Project Target: Android 5.1.1
[gettarget] API level: 22
[echo] ———-
[echo] Creating output directories if needed…
[mkdir] Created dir: H:\Tmp\AndD919.tmp\bin
[mkdir] Created dir: H:\Tmp\AndD919.tmp\bin\res
[mkdir] Created dir: H:\Tmp\AndD919.tmp\bin\rsObj
[mkdir] Created dir: H:\Tmp\AndD919.tmp\bin\rsLibs
[mkdir] Created dir: H:\Tmp\AndD919.tmp\gen
[mkdir] Created dir: H:\Tmp\AndD919.tmp\bin\classes
[mkdir] Created dir: H:\Tmp\AndD919.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] Warning: R.java.d modified in the future.
[javac] Warning: com\yourcompany\yourapplication\BuildConfig.java modified in the future.
[javac] Warning: com\yourcompany\yourapplication\R.java modified in the future.
[javac] Compiling 378 source files to H:\Tmp\AndD919.tmp\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:544: error: cannot find symbol
[javac] if(ViewExt instanceof CRunkcedit) {
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:545: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:545: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:577: error: cannot find symbol
[javac] if(ViewExt instanceof CRunkcedit) {
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:578: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:578: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:881: error: cannot find symbol
[javac] if(ViewExt instanceof CRunkcedit) {
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:882: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:882: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:902: error: cannot find symbol
[javac] if(ViewExt instanceof CRunkcedit) {
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:903: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:903: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:922: error: cannot find symbol
[javac] if(ViewExt instanceof CRunkcedit) {
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:923: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:923: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:941: error: cannot find symbol
[javac] if(ViewExt instanceof CRunkcedit) {
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:942: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[javac] H:\Tmp\AndD919.tmp\src\Extensions\CRunInputType.java:942: error: cannot find symbol
[javac] CRunkcedit edit = ((CRunkcedit)ViewExt);
[javac] ^
[javac] symbol: class CRunkcedit
[javac] location: class CRunInputType
[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.
[javac] 18 errors
[javac] 3 warnings
BUILD FAILED
E:\Java8SDK\tools\ant\build.xml:716: The following error occurred while executing this line:
E:\Java8SDK\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
Total time: 10 seconds

Martin