Getting the following error when trying to build for Android on mac.
Fuse 0.32.0 (build 9613)
Build started: FullCompile
Configuring (0.9 s)
Compiling syntax tree (3.3 s)
Generating code and data (9.2 s)
Building Android app
1/2: libdontbeatourist.so
2/2: my-app.apk
BUILD FAILED
/Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 1 second
## 1/2: libdontbeatourist.so
Outracks.Simulator.GeneratedApplication.cpp
## 2/2: my-app.apk
Buildfile: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/main/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.1.2
[checkenv] Installed at /Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK
-setup:
[echo] Project Name: my-app
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
[echo] Resolving Build Target for my-app...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/main/bin/rsObj
[mkdir] Created dir: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/main/bin/rsLibs
[echo] ----------
[echo] Resolving Dependencies for my-app...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.1.2
[checkenv] Installed at /Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK
-setup:
[echo] Project Name: google-play-services_lib
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
[echo] Resolving Build Target for google-play-services_lib...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for google-play-services_lib...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] No changed resources. R.java and Manifest.java untouched.
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[echo] Creating library output jar file...
[jar] Building jar: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/res
[crunch] To destination dir: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Updating property file: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
[propertyfile] Updating property file: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
[propertyfile] Updating property file: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
[propertyfile] Updating property file: /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] No changed resources. R.java and Manifest.java untouched.
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 120 source files to /Users/user/Documents/user/DBTv2/build/Android/Preview/my-app/app/src/main/bin/classes
[javac] javac: invalid target release: 7
[javac] Usage: javac <options> <source files>
[javac] use -help for a list of possible options
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(5.8 s)
Build completed in 19.16 seconds
1 error
Checking if JDK is corrupt
The javac executable was expected to be found here /Library/Java/Home/Contents/Home/bin/javac
jdk was not found.
Checking if /Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains exists.
/Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains was found.
Checking if /Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt exists.
/Users/user/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt was found.
androidndk was found.
Checking if /Users/user/Library/Application Support/Fusetools/Fuse/Android/Ant exists.
/Users/user/Library/Application Support/Fusetools/Fuse/Android/Ant was found.
Checking if Ant is corrupt
ant was found.
?: Error F0001: Looks like Android is not installed. Please run 'fuse install android' first.
Build ended
fuse: Failed to compile project
The 3 last lines of the output:
?: Error F0001: Looks like Android is not installed. Please run 'fuse install android' first.
Build ended
fuse: Failed to compile project
Did you try to run fuse install android
?
Twice now, i’ll do it again…
Just installed it for the third time:
# Done installing JDK
# Starting AndroidSDK installer
Verifies that Android SDK is installed and valid.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK was found.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools was found.
Checking if Android SDK is corrupt.
Android SDK was found here '/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK'
# Done installing AndroidSDK
# Starting AndroidSDKPackages installer
Verifies that Android SDK Packages is installed and valid.
Checking if all required Android components are installed.
Android SDK Packages was found here '/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK'
# Done installing AndroidSDKPackages
# Starting AndroidNDK installer
Verifies that Android NDK is installed and valid.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains was found.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt was found.
Android NDK was found here '/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK'
# Done installing AndroidNDK
# Starting Ant installer
Verifies that Ant is installed and valid.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/Ant exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/Ant was found.
Checking if Ant is corrupt
Ant was found here '/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/Ant'
But the build still fails:
Fuse 0.32.0 (build 9613)
Build started: FullCompile
Configuring (0.9 s)
Compiling syntax tree (2.9 s)
Generating code and data (8.9 s)
Building Android app
1/2: libdontbeatourist.so
2/2: my-app.apk
BUILD FAILED
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools/ant/build.xml:716: The following error occurred while executing this line:
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 1 second
## 1/2: libdontbeatourist.so
Outracks.Simulator.GeneratedApplication.cpp
## 2/2: my-app.apk
Buildfile: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/main/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK
-setup:
[echo] Project Name: my-app
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
[echo] Resolving Build Target for my-app...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/main/bin/rsObj
[mkdir] Created dir: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/main/bin/rsLibs
[echo] ----------
[echo] Resolving Dependencies for my-app...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK
-setup:
[echo] Project Name: google-play-services_lib
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
[echo] Resolving Build Target for google-play-services_lib...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for google-play-services_lib...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] No changed resources. R.java and Manifest.java untouched.
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/res
[crunch] To destination dir: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Updating property file: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
[propertyfile] Updating property file: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
[propertyfile] Updating property file: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
[propertyfile] Updating property file: /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/google-play-services_lib/bin/build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] No changed resources. R.java and Manifest.java untouched.
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 120 source files to /Users/myuser/Documents/myuser/DBTv2/build/Android/Preview/my-app/app/src/main/bin/classes
[javac] javac: invalid target release: 7
[javac] Usage: javac <options> <source files>
[javac] use -help for a list of possible options
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(6.2 s)
Build completed in 18.83 seconds
1 error
Checking if JDK is corrupt
The javac executable was expected to be found here /Library/Java/Home/Contents/Home/bin/javac
jdk was not found.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains was found.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt was found.
androidndk was found.
Checking if /Users/myuser/Library/Application Support/Fusetools/Fuse/Android/Ant exists.
/Users/myuser/Library/Application Support/Fusetools/Fuse/Android/Ant was found.
Checking if Ant is corrupt
ant was found.
?: Error F0001: Looks like Android is not installed. Please run 'fuse install android' first.
Build ended
fuse: Failed to compile project
Hi, it looks like we got an invalid path to your Java Development Kit.
Can you post the output of running ls /Library/Java/JavaVirtualMachines
?
This is what I get:
1.6.0.jdk jdk1.8.0_111.jdk jdk1.8.0_40.jdk
I see, can you please edit ~/.fuse/sdkConfig.json
and make JavaJdkDirectory
point to /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk
.
And then run fuse install android