Android build problem in Windows 10

Edit: Sorry about the double post

System

  • Windows 10 Pro 64-bit
  • Intel® Core™ i7-4790k CPU @ 4.00GHz 4.00GHz
  • 32 GB RAM
  • Fuse version 0.5.3601
  • Sublime Text build 3083

Target System

  • HTC One M8
  • Android version
    5.0.1
  • HTC Sense version
    6.0
  • Software number
    4.16.401.10
  • HTC SDK API level
    Unknown

Problem

fuse build --target=Android --run fails. Both Powershell and cmd produce the same output:

Connected to fuse daemon

Building project 'tutorial', target 'Android'
---------------------------------------------

# Configuring
Uno: 0.5.3601-Win32
Project: C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj
Packages: UnoCore (0.3.1), Fuse.Designer (0.1.1439), Uno.Collections (0.3.0), Uno.Geometry (0.3.0), FuseCore (0.1.1439), Experimental.Physics (0.1.1439), Fuse.Animations (0.1.1439), Fuse.Drawing (0.1.1439), Fuse.Drawing.Planar (0.1.1439), Uno.Threading (0.3.1), Uno.Net.Http (0.3.1), Experimental.Http (0.1.1439), Fuse.Triggers (0.1.1439), Experimental.TextureLoader (0.3.0), Fuse.Elements (0.1.1439), Fuse.Drawing.Batching (0.1.1439), Fuse.Drawing.Meshes (0.1.1439), Fuse.Drawing.Primitives (0.1.1439), Fuse.Drawing.Polygons (0.1.1439), Fuse.Drawing.Paths (0.1.1439), Fuse.Entities (0.1.1439), Fuse.Gestures (0.1.1439), Fuse.Navigation (0.1.1439), Fuse.Shapes (0.1.1439), Fuse.Controls (0.1.1439), Fuse.Effects (0.1.1439), Fuse.BasicTheme (0.1.1439), Experimental.iOS (0.2.0), ObjC (0.2.0), Fuse.Native.Camera (0.1.1439), Fuse.Native.Storage (0.1.1439), Fuse.Scripting (0.1.1439), Uno.Data.Json (0.3.0), Fuse.Scripting.Duktape (0.1.1439), Fuse.Scripting.Jurassic (0.1.1439), Fuse.Reactive (0.1.1439), tutorial (0.0.0)
(657.09 ms)

# Parsing source code
(79.47 ms)

# Compiling syntax tree
(655.52 ms)

# Generating code and data
C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj: MUNKNOWN: Number of namespaces stripped: 127
C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj: MUNKNOWN: Number of types stripped: 1557
C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj: MUNKNOWN: Number of types sealed: 498
C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj: MUNKNOWN: Number of fields stripped: 1913
C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj: MUNKNOWN: Number of functions stripped: 15470
C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj: MUNKNOWN: Number of functions stripped from vtable: 53
C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial\tutorial.unoproj: MUNKNOWN: Number of functions sealed: 739
(1,348.68 ms)

# Building native target
Running C:\Users\Martin\OneDrive\Dokumenter\Fuse\tutorial.build\Android-Debug\build.bat
>
> # Building SO
> mkdir libs
> mkdir obj
> process_begin: CreateProcess(NULL, mkdir libs, ...) failed.
> process_begin: CreateProcess(NULL, mkdir obj, ...) failed.
> make (e=2): The system cannot find the file specified.
>
> make:  [libs] Error 2
> make:  Waiting for unfinished jobs....
> make (e=2): The system cannot find the file specified.
>
> make: * [obj] Error 2
> (exit code: 1)
<Unknown>: EUNKNOWN: Native target failed to build

Build completed in 2.94 seconds
    0 Warning(s)
FATAL ERROR: Build failed.
    1 Error(s)

Error Summary
-------------

<Unknown>: EUNKNOWN: Native target failed to build

Phone Settings
Security -> Unknown sources is on (allowed)
Developer options -> USB Debugging tried with both on and off
Developer options -> Verify apps over USBtried with both on and off

Hey, have you ran SDK downloader first? It can be found in the tray icon under Utilities. The error message will be much clearer in the future with suggestions on how to fix it.

I hope this solves your problem :slight_smile:

Yes, the SDK downloader shows that everything is downloaded and ready: file

Edit:
I have also tried:

  • Running fuse build --clean --target=Android --run
  • Deleting everything in the ProgramData/Uno/SDKs folder, redownloading, and restarting the PC.

Hi,

It seems that the mkdir command for some reason fails on your machine.

For now we have a workaround that might work for you. I’ve taken mkdir.exe from MSYS and uploaded here.

If you extract these files to your NDK directory where make.exe lives, I believe it should fix your problem. On my machine this is located here: C:\ProgramData\Uno\SDKs\AndroidNDK\prebuilt\windows-x86_64\bin.

In a future version of Fuse we’ll add a replacement that works out-of-box. We’ll come back with more info later.

EDIT: If extracting to the location pasted above doesn’t work, you can also try extracting to C:\Program Files (x86)\Fuse to make sure the executable is in PATH.

Success!
Extracting the zip to where make.exe lives fixed it for me.

Thanks :slight_smile: