Preview on android device failing (fuse: Android run failed)

I have latest fuse enviroment setup on a mac machine [OS X El Capitan 10.11.3 (15D21)]. Android support is installed (confirmed via fuse install -s android (reports android is installed). I can open a sample and preview it on the local machine fine. However, when i pick android in the preview menu, the app compiles and deploys…

Reports android

$ fuse install -s android
# Verifying install status of JDK jdk was found.
# Verifying install status of AndroidSDK
Checking if /usr/local/share/uno/SDKs/AndroidSDK exists.
/usr/local/share/uno/SDKs/AndroidSDK was found.
Checking if /usr/local/share/uno/SDKs/AndroidSDK/tools exists.
/usr/local/share/uno/SDKs/AndroidSDK/tools was found.
Checking if Android SDK is corrupt.
Checking if all required Android components are installed.
androidsdk was found.
# Verifying install status of AndroidNDK
Checking if /usr/local/share/uno/SDKs/AndroidNDK/ndk-build exists.
/usr/local/share/uno/SDKs/AndroidNDK/ndk-build was found.
androidndk was found.
# Verifying install status of Ant
Checking if /usr/local/share/uno/SDKs/Ant exists.
/usr/local/share/uno/SDKs/Ant was found.
Checking if Ant is corrupt
ant was found.
android is installed.

Deploy log

Build started: FullCompile
Configuring
(6,474.21 ms)

Compiling syntax tree
(11,471.98 ms)

Generating code and data
(22,828.10 ms)

Building Android app
1/2: libLoginTransition.so
2/2: LoginTransition.apk
(7,531.50 ms)

Build completed in 48.32 seconds.
    0 Warning(s)
    0 Error(s)
Build ended
Waiting for device (7..)
Waiting for device (6..)
Waiting for device (5..)
Waiting for device (4..)
Waiting for device (3..)
Waiting for device (2..)
Waiting for device (1..)
ERROR: No Android device connected. Please make sure you have developer mode enabled, and any required drivers installed.

My phone developer mode enabled. Is this a known issue? Are there workarounds?

Thank you.

Hi,

Could you post the result of running uno adb devices, while your phone is connected. I am interested to know if adb acctually finds your device.

Hi,

uno adb devices return empty.

Hmm, the command should list all devices, that are connected to your computer. So I had expected your phone to be in that list. You said developer mode was on, however is ADB Debugging on too (ADB Debugging is a submenu item in the developer mode settings)?

Yes, developer mode was on and ADB Debugging on.

I see, hmm. Could you check if your mobile vendor requires a specific driver. Also, I wouldn’t mind to know your mobile model and Android version.

My phone is LG G3 and android version 5.0

Thank you, you may find a solution here: http://forum.xda-developers.com/lg-g3/help/adb-mac-osx-t2803743.

Summary: Looks like it’s important to set the USB mode to PTP, instead of MTP.

The same that in Windows 7 and Nexus 5 (Android 6.0.1),I can open my files of the mobile but say me Fuse “ERROR: No Android device connected. Please make sure you have developer mode enabled, and any required drivers installed.”,Android suppor is installer and the uno adb devices return empty. But I can take the file apk in folder_proyect/build/Android/Preview and copy in my mobile , for the moment is a for pass the moment but if I find the solution , write here.

If your device doesn’t show up in adb devices the problem is out of our control really.

We have some tips in our Android troubleshooting guide, but if that doesn’t help your best shot is probably to search the web for people with similar issues.

To me it sounds like you could be missing the driver for your phone. Note that fuse install android only installs the tools Fuse needs to build for Android, not the driver for specific phones.

Thank you @emil. I found driver http://forum.xda-developers.com/lg-g3/help/adb-mac-osx-t2803743

After driver installation results below.

Uno 0.24.2-OSX (build 1218)

Configuring
Project file: screen.unoproj
Search paths: /Applications/Fuse.app/Contents/Packages, /usr/local/share/uno/Packages
Packages:     UnoCore (0.24.2), Uno.Collections (0.24.0), ObjC (0.24.0), Experimental.iOS (0.24.0), Uno.Geometry (0.24.0), Uno.Threading (0.24.2), Fuse.Designer (0.24.2), FuseCore (0.24.2), Experimental.Physics (0.24.2), Fuse.Animations (0.24.2), Fuse.Drawing (0.24.2), Fuse.Drawing.Batching (0.24.2), Fuse.Drawing.Meshes (0.24.2), Fuse.Drawing.Planar (0.24.2), Android (0.24.0), Experimental.TextureLoader (0.24.0), Uno.Net.Http (0.24.2), Experimental.Http (0.24.2), Fuse.Triggers (0.24.2), Fuse.Elements (0.24.2), Fuse.Drawing.Primitives (0.24.2), Fuse.Drawing.Polygons (0.24.2), Fuse.Drawing.Paths (0.24.2), Fuse.Entities (0.24.2), Fuse.Gestures (0.24.2), Fuse.Navigation (0.24.2), Fuse.Shapes (0.24.2), Uno.Data.Json (0.24.0), Uno.Testing (0.24.2), Fuse.Camera (0.24.2), Fuse.GeoLocation (0.24.2), Fuse.Launcher (0.24.2), Fuse.Scripting (0.24.2), Fuse.Scripting.Duktape (0.24.2), Fuse.Scripting.JavaScriptCore (0.24.2), Fuse.Scripting.Jurassic (0.24.2), Uno.Net.Sockets (0.24.0), Fuse.Scripting.V8 (0.24.2), Fuse.Storage (0.24.2), Fuse.UserEvents (0.24.2), Fuse.Vibration (0.24.2), Fuse.Reactive (0.24.2), Fuse.Controls (0.24.2), Fuse.Effects (0.24.2), Fuse.Physics (0.24.2), Fuse.BasicTheme (0.24.2), Fuse.Video (0.24.2), Fuse.Themes (0.24.2), Fuse.Android (0.24.2), Fuse.Desktop (0.24.2), Fuse.iOS (0.24.2), screen (0.0.0)
Output dir:   build/Android/Debug
(6,364.78 ms)

Compiling syntax tree
(12,734.47 ms)

Generating code and data
 308 namespaces stripped.
 5028 types stripped.
 47174 fields stripped.
 101602 functions stripped.
 607 classes sealed.
 1083 functions sealed.
* 240 functions stripped from vtable.
(23,319.76 ms)

Building Android app
1/2: libscreen.so
(178.42 ms)

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

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

(unknown): E0200: Android build failed -- rerun with '-v' for more information