Fuse 0.35.0 Can't compile for android Mac OS

I can not compile for android.


2/2: TTT.apk
Buildfile: /Users/aprzybecki/git/TTT/build/Android/Debug/TTT/app/src/main/build.xml

BUILD FAILED
/Users/aprzybecki/git/TTT/build/Android/Debug/TTT/app/src/main/build.xml:90: Cannot find /Users/aprzybecki/Library/Android/sdk/tools/ant/build.xml imported from /Users/aprzybecki/git/TTT/build/Android/Debug/TTT/app/src/main/build.xml

Total time: 0 seconds
(unknown): E0200: Android build failed
(28,632.45 ms)

Build completed in 39.38 seconds
    8 warnings
    1 error

fuse: Errors were encountered while building the project

Uno config

Uno 0.46.1 (build 4840) OS X 10.12 i386 3caace9

Uno settings
  Android.NDK.Directory      /Users/aprzybecki/Library/Android/sdk/ndk-bundle
  Android.SDK.BuildToolsVersion (../../Library/Application Support/Fusetools/Fuse/Android) 23.0.1
  Android.SDK.Directory      /Users/aprzybecki/Library/Android/sdk
  Ant.Directory              /Users/aprzybecki/Library/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
  CMake                      /Users/aprzybecki/Library/Android/sdk/cmake
  Java.JDK.Directory         /Library/Java/JavaVirtualMachines/jdk1.8.0_121.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  /Users/aprzybecki/Library/Application Support/Fusetools/Packages
  Packages.LockFiles         (/Applications/Fuse.app/Contents) uno.packages
                             (/Applications/Fuse.app/Contents) unolibs.packages
                             (/Applications/Fuse.app/Contents) fuselibs.packages
                             (/Applications/Fuse.app/Contents) Android.packages
  Packages.SearchPaths       /usr/local/share/uno/Packages
                             (/Applications/Fuse.app/Contents) ../../Packages
  Paths.AppLoader            (/Applications/Fuse.app/Contents/Uno) .
  Paths.NativeLib            (/Applications/Fuse.app/Contents/Uno) .
  SdkConfig                  /Users/aprzybecki/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/.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.5.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)

I reinstall fuse but not help.

fuse install android
Fuse 0.35.0 (build 10867)
# Starting android installer
# Done installing android

Hi there.
First off, thanks for the great breakdown. By default our logs aren’t that verbose, please try building again as follows: uno clean && uno build -tandroid -vvv and pasting the entire log here (most of it is redundant but occasionally there is a clue in there)

Thanks again

Hi Chris. I had this issue

Building Android app
build/Android/Debug/build.sh
1/2: libTTT.so
ERROR: GCC 4.9 or 4.8 was not found in '/toolchains/arm-linux-androideabi-4.**'.
---
(exit code: 1)
(unknown): E0200: Android build failed
(35.37 ms)

Build completed in 10.74 seconds
    8 warnings
    1 error


I tried again

fuse install android

and got result

2/2: TTT.apk
Buildfile: /Users/aprzybecki/git/TTT/build/Android/Debug/TTT/app/src/main/build.xml

BUILD FAILED
/Users/aprzybecki/git/TTT/build/Android/Debug/TTT/app/src/main/build.xml:90: Cannot find /Users/aprzybecki/Library/Android/sdk/tools/ant/build.xml imported from /Users/aprzybecki/git/TTT/build/Android/Debug/TTT/app/src/main/build.xml

Total time: 0 seconds
---
(exit code: 1)
(unknown): E0200: Android build failed
(31,869.66 ms)

Build completed in 42.19 seconds
    8 warnings
    1 error

line of 90 file build.xml

    <import file="${sdk.dir}/tools/ant/build.xml" />

script

fuse install android

create:
~/Library/Android/sdk/
~/Library/Android/Ant/

in ~/Library/Android/sdk/tools/ant didn’t exist

in ~/Library/Android/Ant didn’t exist build.xml

This could be simply that we are being bitten by the changes to the build systems Google are pushing this last week. Could you trying building with gradle?

uno clean && uno build -tandroid -DGRADLE

We will be switching to ‘gradle only’ builds in the next release so at that point ant wont be an issue any more. Sorry that you are caught up in this.

I had other issue but fix in this way:

Thanks Chris for help. You are doing good tool. All best for the Team.

Nice one, thanks again.