Android build fail with Uno/JniHelper.h

Hey,

I’m new in Fuse, and very excited with discovering its fantastic convenience and simplicity. Unfortunately android build was stopped, during several trials of compiling Fuse examples, from catalog different than my desktop,

I get a log similar to this:


$ fuse preview --target=Android
Build started: FullCompile
Configuring
(8,507.57 ms)

Compiling syntax tree
(21,615.00 ms)

Generating code and data
(66,938.00 ms)

Building Android app
1/2: libAnimatedList.so
jni/Uno/JNIHelper.cpp:2:27: fatal error: Uno/JniHelper.h: No such file or directory
 #include <Uno/JniHelper.h>
                           ^
compilation terminated.

make: *** [.uno/Uno/JNIHelper.cpp.o] Error 1
make: *** Waiting for unfinished jobs....
(unknown): E0200: Android build failed -- rerun with '-v' for more information
?: Error E0200: Android build failed -- rerun with '-v' for more information
(64,453.89 ms)

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

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

(unknown): E0200: Android build failed -- rerun with '-v' for more information
jdk was found.
Checking if /Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK exists.
/Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK was found.
Checking if /Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools exists.
/Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools was found.
Checking if Android SDK is corrupt.
Checking if all required Android components are installed.
androidsdk was found.
Checking if /Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/ndk-build exists.
/Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/ndk-build was found.
Checking if /Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains exists.
/Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains was found.
Checking if /Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt exists.
/Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt was found.
androidndk was found.
Checking if /Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/Ant exists.
/Users/Krawu/Library/Application Support/Fusetools/Fuse/Android/Ant was found.
Checking if Ant is corrupt
ant was found.
Build ended
fuse: Failed to compile project

This does not happen when I try any project saved on my desktop, but due to limited space on a primary disk, I’d like to open examples from another drive.

I’m very appreciate for any suggestion

Thank you.

Hey,

I think the issue is with case-sensitivity. Actual filename is ‘JNIHelper.cpp’ while that import tries to find file ‘JniHelper.cpp’. Probably your ‘another drive’ uses case-sensitive file system.

There are also several issues with case-sensitivity in example apps (e.g. in Inbox with Icon names).

I assume that for 95% developers this issue will never occur, as Windows and OS X uses case-insensitive filesystem by default (howevever it’s very easy to install OS X with case-sensitive FS as I did and faced the same issue).

Hi krawu,

Ouch, yeah that is a bug on our side. Andrej Kincel was spot on too, (Thanks Andrej!) it was OSX/Windows hiding issues from us.

Fixing the code now.

Thanks to both of you.

p.s. This will be at least a week to ship as the next release has already gone through testing and is thus in codefreeze.

Hi Chris,

You are welcome. I really like how fast you reacted and how Fuse team works with community. Keep it going!

I’m facing the same problem previewing http-json example on Android device with the latest fuse (fresh installed).

@jk4991: Hi! That’s strange, this issue should have been fixed quite some time ago. Can you provide the (full) log output from when it fails? Also, which exact Fuse version are you on?