I am trying to develop some foreign code using java. I got an exception from the code, complaining the compliler (javac) is too old. Subsequently, I followed fuse instructions to: fuse install android, and even go to the Oracle site to download java, jdk-8u92-macosx-x64.dmg. none of this work. I remembered this code worked for an earlier version of Fuse.
The following is part of the output from: fuse preview -t android
...
-compile:
[javac] Compiling 42 source files to /Users/worfdata/Developments/FuseLearning/2ndFuseTest/MySecondFuseApp/FuseMotion/build/Android/Preview/ForeignAccelerometer/app/src/main/bin/classes
[javac] It is recommended that the compiler be upgraded.
[javac] It is recommended that the compiler be upgraded.
...
/ForeignAccelerometer/app/src/main/bin/classes
[dex] input: /Users/worfdata/Developments/FuseLearning/2ndFuseTest/MySecondFuseApp/FuseMotion/build/Android/Preview/ForeignAccelerometer/app/src/main/libs/android-support-v4.jar
[dex] Pre-Dexing /Users/worfdata/Developments/FuseLearning/2ndFuseTest/MySecondFuseApp/FuseMotion/build/Android/Preview/ForeignAccelerometer/app/src/main/libs/android-support-v4.jar -> android-support-v4-655b54577497639bfe28895d45ac30f0.jar
[dx] at java.lang.ClassLoader.defineClass1(Native Method)
[dx] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
[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 java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(11.15s)
Build completed in 68.85 seconds
1 error
Found JDK version 1.6.65. However Fuse requires a JDK version that is higher than version 1.6.
jdk was not found.
Checking if /Users/worfdata/Library/Android/sdk/ndk-bundle/toolchains exists.
/Users/worfdata/Library/Android/sdk/ndk-bundle/toolchains was found.
Checking if /Users/worfdata/Library/Android/sdk/ndk-bundle/prebuilt exists.
/Users/worfdata/Library/Android/sdk/ndk-bundle/prebuilt was found.
androidndk was found.
Checking if /Users/worfdata/Library/Application Support/Fusetools/Fuse/Android/Ant exists.
/Users/worfdata/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
I had the same problem when I use fuse install android
# Starting JDK installer
Verifies that Java Development Kit is installed and valid.
Found JDK version 1.6.65. However Fuse requires a JDK version that is higher than version 1.6.
ApplicationName='/Library/Java/JavaVirtualMachines/bin/javac', CommandLine='-version', CurrentDirectory='', Native error= Cannot find the specified file
fuse: Failed to install JDK
thank you, howere I did already tried this way. But the fuse or the OSX continue to redirect the old version. I’m researching for this solution. I think that is a question of set a way
I did however i am not seeing the sdkConfig.json file. this is what i am getting. and its happening on my both computers.
Starting JDK installer
Verifies that Java Development Kit is installed and valid. Found JDK version 1.6.65. However Fuse requires a JDK version that is higher than version 1.6. ApplicationName=’/Library/Java/JavaVirtualMachines/bin/javac’, CommandLine=’-version’, CurrentDirectory=’’, Native error= Cannot find the specified file fuse: Failed to install JDK
I’m getting the same error after running “fuse install android”. I also updated manually via the Oracle download page and cannot see sdkConfig.json in the .fuse folder.
I’ve tried everything above. I upgraded to v.27 and now having this issue:
Found JDK version 1.6.65. However Fuse requires a JDK version that is higher than version 1.6.
jdk was not found.
Checking if /Users/WebbratStudios/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains exists.
/Users/WebbratStudios/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains was found.
Checking if /Users/WebbratStudios/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt exists.
/Users/WebbratStudios/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt was found.
androidndk was found.
Checking if /Users/WebbratStudios/Library/Application Support/Fusetools/Fuse/Android/Ant exists.
/Users/WebbratStudios/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```
I also couldn’t find sdkConfig.json. I could see .sdkconfig (no extension) in /Users/Jason/Library/Application Support/Fusetools/Fuse/Android.
In this file, JDK configuration set to jdk1.7.0_79.jdk.
I tried;
Install the latest version of JDK from Oracle. ( jdk1.8.0_121.jdk)
Delete jdk1.7.0_79.jdk folder.
Run fuse install android.
The installer couldn’t find JDK folder (it’s deleted) and asked to put a new JDK path.
I put the installed JDK path. (/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk).