fuse export to android is not working

Hi fuse,
i have a problem when i try to export my app to android device. I searched your forum for a answer but still unable to find one. This is the error i am getting. i am using windows 8.1 64bit. and also i have installed the latest version of fuse. I have used the fuse install android command and it also finished without any errors. Please provide me a solution. Thank you!

Exception in thread "main" java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:220)
	at java.util.zip.ZipFile.<init>(ZipFile.java:150)
	at java.util.zip.ZipFile.<init>(ZipFile.java:164)
	at org.gradle.wrapper.Install.unzip(Install.java:214)
	at org.gradle.wrapper.Install.access$600(Install.java:27)
	at org.gradle.wrapper.Install$1.call(Install.java:74)
	at org.gradle.wrapper.Install$1.call(Install.java:48)
	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
	at org.gradle.wrapper.Install.createDist(Install.java:48)
	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

Hi, could you please share with us the Fuse logs you can find on your system as described here?

Great, thanks!

The only troubling thing I see there is this: ERROR: Path Android.SDK.Directory was not found in .unoconfig., which hints that fuse install android probably didn’t do what it was supposed to.

Could you run uno config and paste the output of that here?

$ uno config
Uno 1.2.1 (build 5543) Windows 8.1 x64 f830dec

Uno settings
  Android.NDK.Directory      C:\Users\sajith\AppData\Local\Android\sdk\ndk-bundle
  Android.SDK.BuildToolsVersion (C:\Users\sajith\AppData\Local\Fusetools\Fuse\Android) 26.0.1
  Android.SDK.Directory      C:\Users\sajith\AppData\Local\Android\sdk
  Ant.Directory              C:\Users\sajith\AppData\Local\Fusetools\Fuse\Android\Ant
  Assemblies.Disasm          (C:\Program Files (x86)\Fuse) uno-disasm.exe
  Assemblies.Plugins         (C:\Program Files (x86)\Fuse) Uno.Compiler.Extensions.dll
  Assemblies.Test            (C:\Program Files (x86)\Fuse) uno-test.exe
  Assemblies.TestGen         (C:\Program Files (x86)\Fuse) uno-test-gen.exe
  Assemblies.Uno             (C:\Program Files (x86)\Fuse) uno.exe
  CMake                      C:\Users\sajith\AppData\Local\Android\sdk\cmake
  CommonDll                  (C:\Program Files (x86)\Fuse) Outracks.Common.dll
  HaveAllSDKPackages         (C:\Users\sajith\AppData\Local\Fusetools\Fuse\Android) true
  Java.JDK.Directory         C:\Program Files\Java\jdk1.8.0_40
  ModulesDirectory           (C:\Program Files (x86)\Fuse) Modules
  Mono                       \Applications\Fuse.app\Contents\Mono\bin\mono
  Packages.Default           (C:\Program Files (x86)\Fuse) Fuse
                             (C:\Program Files (x86)\Fuse) FuseJS
  Packages.Feeds             https://packages.fusetools.com/api/standard/v2
  Packages.InstallDirectory  C:\Users\sajith\AppData\Local\Fusetools\Packages
  Packages.LockFiles         (C:\Program Files (x86)\Fuse) uno.packages
                             (C:\Program Files (x86)\Fuse) unolibs.packages
                             (C:\Program Files (x86)\Fuse) fuselibs.packages
                             (C:\Program Files (x86)\Fuse) premiumlibs.packages
                             (C:\Program Files (x86)\Fuse) Android.packages
  Packages.SearchPaths       (C:\Program Files (x86)\Fuse) Packages
  Paths.AppLoader            (C:\Program Files (x86)\Fuse) .
  Paths.NativeLib            (C:\Program Files (x86)\Fuse) .
  SdkConfig                  C:\Users\sajith\AppData\Local\Fusetools\Fuse\Android\.sdkconfig
  TemplatesDirectory         (C:\Program Files (x86)\Fuse) Templates
  UnoHostCommonDll           (C:\Program Files (x86)\Fuse) Outracks.UnoHost.Common.dll

Config files
  C:\Program Files (x86)\Fuse\.unoconfig
  C:\Program Files (x86)\Fuse\common.unoconfig
  C:\Users\sajith\AppData\Local\Fusetools\Fuse\Android\.sdkconfig
  C:\Program Files (x86)\Fuse\Fuse.unoconfig

.NET assemblies
  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll (4.0.0.0)
  C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll (4.0.0.0)
  C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll (4.0.0.0)
  C:\Program Files (x86)\Fuse\stuff.exe (1.2.5.0)
  C:\Program Files (x86)\Fuse\Mono.Options.dll (4.0.0.0)
  C:\Program Files (x86)\Fuse\AjaxMin.dll (5.14.5506.26196)
  C:\Program Files (x86)\Fuse\Castle.Core.dll (3.3.0.0)
  C:\Program Files (x86)\Fuse\ColorPicker.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\ColorPickerControls.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\FuseDependencies.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\ICSharpCode.AvalonEdit.dll (5.0.1.0)
  C:\Program Files (x86)\Fuse\ICSharpCode.NRefactory.dll (5.0.0.0)
  C:\Program Files (x86)\Fuse\ICSharpCode.NRefactory.Xml.dll (5.0.0.0)
  C:\Program Files (x86)\Fuse\log4net.dll (1.2.13.0)
  C:\Program Files (x86)\Fuse\MahApps.Metro.dll (1.2.4.0)
  C:\Program Files (x86)\Fuse\Microsoft.Web.XmlTransform.dll (2.1.0.0)
  C:\Program Files (x86)\Fuse\Minimatch.dll (1.1.0.0)
  C:\Program Files (x86)\Fuse\Mono.Posix.dll (4.0.0.0)
  C:\Program Files (x86)\Fuse\MonoMac.dll (0.0.0.0)
  C:\Program Files (x86)\Fuse\Newtonsoft.Json.dll (8.0.0.0)
  C:\Program Files (x86)\Fuse\NuGet.Common.dll (3.4.3.0)
  C:\Program Files (x86)\Fuse\NuGet.Core.dll (2.11.1.812)
  C:\Program Files (x86)\Fuse\NuGet.Frameworks.dll (3.4.3.0)
  C:\Program Files (x86)\Fuse\NuGet.Logging.dll (3.4.3.0)
  C:\Program Files (x86)\Fuse\NuGet.Packaging.Core.dll (3.4.3.0)
  C:\Program Files (x86)\Fuse\NuGet.Packaging.Core.Types.dll (3.4.3.0)
  C:\Program Files (x86)\Fuse\NuGet.Packaging.dll (3.4.3.0)
  C:\Program Files (x86)\Fuse\NuGet.Versioning.dll (3.4.3.0)
  C:\Program Files (x86)\Fuse\Ookii.Dialogs.Wpf.dll (1.0.0.0)
  C:\Program Files (x86)\Fuse\OpenTK.dll (1.1.0.0)
  C:\Program Files (x86)\Fuse\Outracks.CodeCompletion.CodeNinja.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.CodeCompletion.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.CodeCompletion.NRefactoryInterop.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.CodeCompletion.UXNinja.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Common.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Common.Math.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Common.Text.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.Bootstrap.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.Create.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.Daemon.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.Diagnose.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.Install.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.KillAll.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.ModuleInstaller.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fuse.Preview.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fusion.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fusion.OSX.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Fusion.Windows.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Simulator.Common.Uno.dll (0.0.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Simulator.Parser.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Simulator.Protocol.dll (0.0.0.0)
  C:\Program Files (x86)\Fuse\Outracks.Simulator.Proxy.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.TriggerFuseQuit.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\Outracks.UnoHost.Common.dll (1.2.0.0)
  C:\Program Files (x86)\Fuse\System.Collections.Immutable.dll (1.0.34.0)
  C:\Program Files (x86)\Fuse\System.Reactive.dll (4.0.0.0)
  C:\Program Files (x86)\Fuse\System.Reactive.Windows.Threading.dll (3.0.1000.0)
  C:\Program Files (x86)\Fuse\System.Windows.Interactivity.dll (4.5.0.0)
  C:\Program Files (x86)\Fuse\Uno.Native.dll (1.0.0.0)
  C:\Program Files (x86)\Fuse\Uno.Runtime.Core.dll (0.0.0.0)
  C:\Program Files (x86)\Fuse\XamMac.dll (0.0.0.0)

Can you please share the full output of doing uno build -tandroid -r?

$ uno build -tandroid -r
Uno 1.2.1 (build 5543) Windows 8.1 x64 f830dec

Configuring
Target is up-to-date -- stopping build (pass --force to override)
Building Android app
2/2: sampathVishwa.apk
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:220)
        at java.util.zip.ZipFile.<init>(ZipFile.java:150)
        at java.util.zip.ZipFile.<init>(ZipFile.java:164)
        at org.gradle.wrapper.Install.unzip(Install.java:214)
        at org.gradle.wrapper.Install.access$600(Install.java:27)
        at org.gradle.wrapper.Install$1.call(Install.java:74)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
## 2/2: sampathVishwa.apk
Unzipping C:\Users\sajith\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.14.1-all.zip to C:\Users\sajith\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv
(unknown): E0200: Android build failed
(0.6 s)

Build completed in 0.90 seconds
    1 error