Having issues with building the project with ant

Hi there,

I am trying to build a project.

$fuse install android

# Starting JDK installer
Verifies that Java Development Kit is installed and valid.
Java Development Kit was found, doing nothing
# Done installing JDK
# Starting AndroidSDK installer
Verifies that Android SDK is installed and valid.
Checking if E:\Users\WB\AppData\Local\Android\android-sdk exists.
E:\Users\WB\AppData\Local\Android\android-sdk was found.
Checking if E:\Users\WB\AppData\Local\Android\android-sdk\tools exists.
E:\Users\WB\AppData\Local\Android\android-sdk\tools was found.
Checking if Android SDK is corrupt.
Checking if all required Android components are installed.
Android SDK and its components  were found, doing nothing
# Done installing AndroidSDK
# Starting AndroidNDK installer
Verifies that Android NDK is installed and valid.
Checking if E:\Users\WB\AppData\Local\Android\android-ndk\ndk-build exists.
E:\Users\WB\AppData\Local\Android\android-ndk\ndk-build was found.
Android NDK was found, doing nothing
# Done installing AndroidNDK
# Starting Ant installer
Verifies that Ant is installed and valid.
Checking if E:\Users\WB\AppData\Local\apache-ant-1.9.6 exists.
E:\Users\WB\AppData\Local\apache-ant-1.9.6 was found.
Checking if Ant is corrupt
Ant was found, doing nothing
# Done installing Ant

and

$ fuse build -v --target=Android
Connected to fuse daemon
Uno 0.18.8-Win32 (build 753)

Configuring
Project file: first.unoproj
Search paths: c:\Program Files (x86)\Fuse\Packages, C:\ProgramData\Uno\Packages
Packages:     UnoCore (0.18.8), Fuse.Designer (0.17.6), Uno.Collections (0.18.2), Uno.Geometry (0.18
.2), Uno.Threading (0.18.8), FuseCore (0.17.6), Experimental.Physics (0.17.6), Fuse.Animations (0.17
.6), Fuse.Drawing (0.17.6), Fuse.Drawing.Batching (0.17.6), Fuse.Drawing.Meshes (0.17.6), Fuse.Drawi
ng.Planar (0.17.6), Uno.Net.Http (0.18.8), Experimental.Http (0.17.6), Fuse.Triggers (0.17.6), Andro
id (0.18.3), ObjC (0.18.2), Experimental.iOS (0.18.2), Experimental.TextureLoader (0.18.2), Fuse.Ele
ments (0.17.6), Fuse.Drawing.Primitives (0.17.6), Fuse.Drawing.Polygons (0.17.6), Fuse.Drawing.Paths
 (0.17.6), Fuse.Entities (0.17.6), Fuse.Gestures (0.17.6), Fuse.Navigation (0.17.6), Fuse.Shapes (0.
17.6), Fuse.Controls (0.17.6), Fuse.Effects (0.17.6), Fuse.Physics (0.17.6), Fuse.BasicTheme (0.17.6
), Fuse.Video (0.17.6), Fuse.Themes (0.17.6), Fuse.Camera (0.17.6), Fuse.Storage (0.17.6), Fuse.Vibr
ation (0.17.6), Fuse.Launcher (0.17.6), Fuse.UserEvents (0.17.6), Fuse.GeoLocation (0.17.6), Fuse.Sc
ripting (0.17.6), Uno.Data.Json (0.18.2), Fuse.Scripting.Duktape (0.17.6), Fuse.Scripting.JavaScript
Core (0.17.6), Fuse.Scripting.Jurassic (0.17.6), Uno.Net.Sockets (0.18.2), Fuse.Scripting.V8 (0.17.6
), Fuse.Reactive (0.17.6), Fuse.Android (0.17.6), Fuse.Desktop (0.17.6), Fuse.iOS (0.17.6), first
Output dir:   .build\Android-Debug
(2,826.82 ms)

Parsing source code
(5,515.87 ms)

Compiling syntax tree
(21,043.60 ms)

Generating code and data
 318 namespaces stripped.
 5199 types stripped.
 47469 fields stripped.
 102629 functions stripped.
 471 classes sealed.
 911 functions sealed.
* 216 functions stripped from vtable.
write .build\Android-Debug\include_root.Fuse_Controls_bundle.h
write .build\Android-Debug\include_root.Fuse_Effects_bundle.h
write .build\Android-Debug\include_root.Fuse_Elements_bundle.h
write .build\Android-Debug\jni_root.g.cpp
write .build\Android-Debug\jni\Fuse.Elements.Internal.g.cpp
write .build\Android-Debug\jni\Fuse.Effects.g.cpp
write .build\Android-Debug\jni\Fuse.Internal.Drawing.g.cpp
write .build\Android-Debug\jni\Uno_main.cpp
write .build\Android-Debug\Makefile
(22,908.45 ms)

Building native target
.build\Android-Debug\build.bat

1/2: libfirst.so
_root.g.cpp
Fuse.Controls.Graphics.g.cpp
Fuse.Effects.g.cpp
Fuse.Elements.g.cpp
Fuse.Elements.Internal.g.cpp
Fuse.Internal.Drawing.g.cpp
Uno/_main.cpp

2/2: first-debug.apk
Buildfile: e:\Fuse\first.build\Android-Debug\build.xml

BUILD FAILED
Target "debug" does not exist in the project "first".

Total time: 0 seconds
---
(exit code: 1)

(unknown): E0000: Native build failed
(11,800.38 ms)

Build completed in 64.11 seconds.
    0 Warning(s)
    1 Error(s)

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

(unknown): E0000: Native build failed
FATAL ERROR: Build failed.
fuse: Errors were encountered while building the project

Hi there,

First off I’m very sorry this didnt get answered for so long. Are you still seeing this issue? are you able to build any projects for android?

Regards Chris

Oh yes, actually my ‘tools’ directory of android sdk got corrupt. Replaced it with fresh copy and worked like a charm. :slight_smile:

Thanks for the heads up though. Appreciated.

Phew! Great to hear, thanks for the update