Android will not preview or build, not even Hello World

Hi,

No matter what i try or do, a preview or build for Android crashes all the time. Could you tell me what is wrong?

Here is my info:

Fuse version 0.29.0 (build 8396)

Uno 0.40.2 (build 3994) OS X 10.12 i386 5e10813

Uno settings
Android.NDK.Directory /Users/richardvanheel/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK
Android.SDK.BuildToolsVersion (…/…/Library/Application Support/Fusetools/Fuse/Android) 24.0.2
Android.SDK.Directory /Users/richardvanheel/Library/Android/sdk
Ant.Directory /Users/richardvanheel/Library/Application Support/Fusetools/Fuse/Android/Ant
Apps.Disasm (/Applications/Fuse.app/Contents/Uno) Uno Disasm.app
Assemblies.PerfCmp (/Applications/Fuse.app/Contents/Uno) uno-perf-cmp.exe
Assemblies.PerfTest (/Applications/Fuse.app/Contents/Uno) uno-perf-test.exe
Assemblies.Plugins (/Applications/Fuse.app/Contents/Uno) Uno.Compiler.Extensions.dll
Assemblies.Test (/Applications/Fuse.app/Contents/Uno) uno-test.exe
Assemblies.TestGen (/Applications/Fuse.app/Contents/Uno) uno-test-gen.exe
Assemblies.Uno (/Applications/Fuse.app/Contents/Uno) uno.exe
IsRoot (/Applications/Fuse.app/Contents/Uno) false
Java.JDK.Directory /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
ModulesDirectory (/Applications/Fuse.app/Contents) Modules
Mono /Applications/Fuse.app/Contents/Mono/bin/mono
Packages.Default (/Applications/Fuse.app/Contents/Uno) Fuse
(/Applications/Fuse.app/Contents/Uno) FuseJS
Packages.Feeds https://api.fusetools.com/packages/v1/nuget/v2
Packages.InstallDirectory (/Applications/Fuse.app/Contents/Uno) …/lib
Packages.SearchPaths (/Applications/Fuse.app/Contents) Packages
/usr/local/share/uno/Packages
(/Applications/Fuse.app/Contents) …/…/Packages
(/Applications/Fuse.app/Contents/Uno) …/Packages
Paths.AppLoader (/Applications/Fuse.app/Contents/Uno) .
Paths.NativeLib (/Applications/Fuse.app/Contents/Uno) .
SdkConfig /Users/richardvanheel/Library/Application Support/Fusetools/Fuse/Android/.sdkconfig
TemplatesDirectory (/Applications/Fuse.app/Contents) Templates

Config files
/Applications/Fuse.app/Contents/Uno/.unoconfig
/Applications/Fuse.app/Contents/Uno/common.unoconfig
…/…/Library/Application Support/Fusetools/Fuse/Android/.sdkconfig
/Applications/Fuse.app/Contents/Uno/mac.unoconfig
/Applications/Fuse.app/Contents/.unoconfig
/Applications/Fuse.app/Contents/Fuse.unoconfig

.NET assemblies
/Applications/Fuse.app/Contents/Mono/lib/mono/4.5/mscorlib.dll (4.0.0.0)
/Applications/Fuse.app/Contents/Mono/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll (4.0.0.0)
/Applications/Fuse.app/Contents/Mono/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll (4.0.0.0)
/Applications/Fuse.app/Contents/Uno/stuff.exe (1.2.4.0)
/Applications/Fuse.app/Contents/Uno/Mono.Options.dll (4.0.0.0)
/Applications/Fuse.app/Contents/Uno/AjaxMin.dll (5.14.5506.26196)
/Applications/Fuse.app/Contents/Uno/Microsoft.Web.XmlTransform.dll (2.1.0.0)
/Applications/Fuse.app/Contents/Uno/Minimatch.dll (1.1.0.0)
/Applications/Fuse.app/Contents/Uno/MonoMac.dll (0.0.0.0)
/Applications/Fuse.app/Contents/Uno/Newtonsoft.Json.dll (8.0.0.0)
/Applications/Fuse.app/Contents/Uno/NuGet.Common.dll (3.4.3.0)
/Applications/Fuse.app/Contents/Uno/NuGet.Core.dll (2.11.1.812)
/Applications/Fuse.app/Contents/Uno/NuGet.Frameworks.dll (3.4.3.0)
/Applications/Fuse.app/Contents/Uno/NuGet.Logging.dll (3.4.3.0)
/Applications/Fuse.app/Contents/Uno/NuGet.Packaging.Core.Types.dll (3.4.3.0)
/Applications/Fuse.app/Contents/Uno/NuGet.Packaging.Core.dll (3.4.3.0)
/Applications/Fuse.app/Contents/Uno/NuGet.Packaging.dll (3.4.3.0)
/Applications/Fuse.app/Contents/Uno/NuGet.Versioning.dll (3.4.3.0)
/Applications/Fuse.app/Contents/Uno/Uno.Native.dll (1.0.0.0)
/Applications/Fuse.app/Contents/Uno/Uno.Runtime.Core.dll (0.0.0.0)

And here the error output:

fuse build -tandroid -vv
Uno 0.40.2 (build 3994) OS X 10.12 i386 5e10813

Configuring
Project file: EData.unoproj
Search paths: /Applications/Fuse.app/Contents/Packages, /usr/local/share/uno/Packages, /Applications/Packages, /Applications/Fuse.app/Contents/lib
add MainView.ux (UXFile)

Target is up-to-date – stopping build (pass --force to override)
Building Android app
build/Android/Debug/build.sh
1/2: libEData.so

2/2: EData.apk
Buildfile: /Users/richardvanheel/Documents/EData/build/Android/Debug/EData/app/src/main/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at /Users/richardvanheel/Library/Android/sdk

-setup:
[echo] Project Name: EData
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.2
[echo] Resolving Build Target for EData…
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: /Users/richardvanheel/Documents/EData/build/Android/Debug/EData/app/src/main/bin/rsObj
[mkdir] Created dir: /Users/richardvanheel/Documents/EData/build/Android/Debug/EData/app/src/main/bin/rsLibs
[echo] ----------
[echo] Resolving Dependencies for EData…
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with ‘debug’…
[subant] No sub-builds to iterate on

-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 1 source file to /Users/richardvanheel/Documents/EData/build/Android/Debug/EData/app/src/main/bin/classes

-post-compile:

-obfuscate:

-dex:
[dex] input: /Users/richardvanheel/Documents/EData/build/Android/Debug/EData/app/src/main/bin/classes
[dex] input: /Users/richardvanheel/Documents/EData/build/Android/Debug/EData/app/src/main/libs/android-support-v4.jar
[dex] Pre-Dexing /Users/richardvanheel/Documents/EData/build/Android/Debug/EData/app/src/main/libs/android-support-v4.jar -> android-support-v4-b62dfa16aceba7a32a73946741226e48.jar
[dx] Exception in thread “main” java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
[dx] at java.lang.ClassLoader.defineClass1(Native Method)
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[dx] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[dx] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[dx] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[dx] at java.security.AccessController.doPrivileged(Native Method)
[dx] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[dx] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

BUILD FAILED
/Users/richardvanheel/Library/Android/sdk/tools/ant/build.xml:888: The following error occurred while executing this line:
/Users/richardvanheel/Library/Android/sdk/tools/ant/build.xml:890: The following error occurred while executing this line:
/Users/richardvanheel/Library/Android/sdk/tools/ant/build.xml:902: The following error occurred while executing this line:
/Users/richardvanheel/Library/Android/sdk/tools/ant/build.xml:283: null returned: 1

Total time: 2 seconds

(exit code: 1)
(unknown): E0200: Android build failed
(2,516.08 ms)

Build completed in 2.80 seconds
1 error

fuse: Errors were encountered while building the project

Kind regards,

Richard.

Problem fixed!

After downgrading to SDK Build tools 23.0.3 it is compiling, previewing and running on my Galaxy S6!