I’ve reinstalled Java, Android SDK, Fuse ( and upgraded ) and still can’t preview to Android devices. Now with v27. I get the following.
I have the latest SDK but Fuse keep redirecting to the default and earlier 1.6 version even after I entered the correct path in ~/.fuse/sdkConfig.json
Checking if JDK is corrupt
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
Hi, can you please share the content of your ~/.fuse/sdkConfig.json, as well as the output from uno config? If you don’t want to do that publicly, you can upload it to https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK.
Hi, there seems to be an inconsistency in Fuse regarding which configuration variables we use to pick up the JDK. We’ll fix this in a future version, but in the mean time you can fix it by doing the following:
Delete /usr/local/share/uno/SDKs
Open [user home]/Library/Application Support/Fusetools/Fuse/Android/.sdkconfig, and modify JavaJdkDirectory to point to the same directory as Java.JDK.Directory.
I had already modified the .sdkconfig file. It is still returning the same error. Also it seems to be looking for an addon sdk 23 or something but keep failing to fetch it. Broken links maybe?
If you have set the correct path to JavaJdkDirectory in [user home]/Library/Application Support/Fusetools/Fuse/Android/.sdkconfig, it must be picking up a conflicting value from one of the other files listed under “Config files” when you do uno config. Have you deleted /usr/local/share/uno/SDKs? It could be picking it up from there. What does [user home]/Library/Application Support/Fusetools/Fuse/Android/.sdkconfig look like now?
As for the sdk 23 issue, which command are you running that results in this error, and what’s the actual output?
How do I install this platform 23? Is this referring to an Android API? If so, I ran the “android” command and I there is no API 23 listed. The most recent I have is API 22. As mentioned above, the command ( fuse install android) , asks to install additional software. The output:
Thanks for that toine! I however think he first needs to find out why his computer can’t connect to dl.google.com, or he won’t get step 9 to work anyway.
To explain a bit more what’s going on: fuse install android is trying to install the various tools you need to build for Android. To do that, it needs to contact the Google servers to download software and meta-data. In the error message you pasted above, it says Unknown host dl.google.com, which means it cannot connect to Google’s servers. This might be due to temporary network problems, or because you are behind a firewall (your own, your company’s or your government’s). That’s why I asked you to paste the url in a browser. It seems you are able to access that url just fine in a browser, so then I don’t understand why you couldn’t through fuse install android.
Could it be that you had temporary network issues? Can you try fuse install android again and see if you still get the same message? If so, can you try to disable any firewall you have running on your Mac?
By the way, the message about lacking style information can be ignored. It is just a message from Chrome that it doesn’t know how to display this xml file from Google. Which is fine, since it is not meant for humans anyway.
I finally got everything to work! After scratching my head for two days, I checked my .zshrc file and found out why fuse kept pointing to the old version of Java. I changed the “java_home” path to the new JDK did the “fuse install android” command. When asked I entered the same path as in “java_home” in the terminal and presto the error for Java stopped showing. As for the Android bit, I was tempted to reinstall it (that’d be a nightmare!). Instead I ran the “android” command to find the mysterious platform 23. The big issue with the Android SDK is its terribly slow and seems to have some issues connecting to its servers / external sites. I had to run it several times to get platform 23 and each time a different set of platforms were either listed or disappeared.