Cannot run preview

--------Fuse 1.0.0 (build 13426)-------
cannot preview on android. I tried to reinstall fuse, but error happened again
thanks in advance

Code:

Configuring (1,2 s)
Compiling syntax tree (4,4 s)
Generating code and dataFuse 1.0.0 (build 13426)
Configuring (1.3 s)
Compiling syntax tree (5.8 s)
Generating code and data (20,6 s)

Build completed in 26,37 seconds
 (18.5 s)
Building Android app
2/2: fuse.apk

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
Error while executing 'D:\Dima\Android_SDK\cmake\3.6.3155560\bin\cmake.exe' with arguments {--build D:\Dima\markbook.com\fuse\fuse\build\Android\Preview\app\.externalNativeBuild\cmake\debug\armeabi-v7a --target fuse}
[1/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Polyfills.Window.g.cpp.o
[2/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/FuseJS.g.cpp.o
[3/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.g.cpp.o
[4/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Simulator.g.cpp.o
[5/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Simulator.Ge-6f9cb169.cpp.o
[6/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Simulator.Bytecode.g.cpp.o
[7/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Simulator.Protocol.g.cpp.o
[8/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Simulator.Runtime.g.cpp.o
[9/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Simulator.Client.g.cpp.o
[10/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Simulator.Client.Dialogs.g.cpp.o
[11/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.Building.g.cpp.o
[12/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Outracks.UnoHost.g.cpp.o
[13/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Uno/Support.cpp.o
[14/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Uno/Base64.cpp.o
[15/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Uno/Reflection.cpp.o
[16/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Uno/EntryPoints.cpp.o
[17/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Uno/JNIHelper.cpp.o
[18/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Uno/Graphics/GLHelper.cpp.o
[19/135] Building CXX object CMakeFiles/fuse.dir/app/src/main/jni/Implementation/Cpp/posix_mutex.cpp.o
FAILED: D:\Dima\Android_SDK\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe  --target=armv7-none-linux-androideabi --gcc-toolchain=D:/Dima/Android_SDK/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=D:/Dima/Android_SDK/ndk-bundle/sysroot  -DANDROID_NDK=D:/Dima/Android_SDK/ndk-bundle -DANDROID_PLATFORM=9 -DANDROID_STL=stlport_shared -DANDROID_TOOLCHAIN=clang -Dfuse_EXPORTS -I../../../../src/main/include -IC:/Users/User/AppData/Local/Fusetools/Packages/UnoCore/1.0.11/prebuilt/Android/include -ID:/Dima/Android_SDK/ndk-bundle/sources/android/support/include -IC:/Users/User/AppData/Local/Fusetools/Packages/Fuse.Scripting.V8/1.0.2 -IC:/Users/User/AppData/Local/Fusetools/Packages/Fuse.Text/1.0.2/harfbuzz/include -isystem D:/Dima/Android_SDK/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/Dima/Android_SDK/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem D:/Dima/Android_SDK/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem D:/Dima/Android_SDK/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security   -std=c++11 -Wno-unused-value -Wno-dangling-else  -Wno-invalid-offsetof -fexceptions -frtti -O0 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/fuse.dir/app/src/main/jni/Implementation/Cpp/posix_mutex.cpp.o -MF CMakeFiles\fuse.dir\app\src\main\jni\Implementation\Cpp\posix_mutex.cpp.o.d -o CMakeFiles/fuse.dir/app/src/main/jni/Implementation/Cpp/posix_mutex.cpp.o -c D:\Dima\markbook.com\fuse\fuse\build\Android\Preview\app\src\main\jni\Implementation\Cpp\posix_mutex.cpp
D:\Dima\markbook.com\fuse\fuse\build\Android\Preview\app\src\main\jni\Implementation\Cpp\posix_mutex.cpp:23:13: error: use of undeclared identifier 'pthread_mutex_lock_timeout_np'
       return pthread_mutex_lock_timeout_np(mutexHandle, millisecondsTimeout) == 0;
              ^
  1 error generated.
  D:\Dima\markbook.com\fuse\fuse\build\Android\Preview\app\src\main\jni\Uno\Graphics\GLHelper.cpp:243:21: warning: self-comparison always evaluates to true [-Wtautological-compare]
              samples <= samples && r <= colorBits.R && g <= colorBits.G && b <= colorBits.B && a <= colorBits.A)
                      ^
  1 warning generated.
  ninja: build stopped: subcommand failed.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
## 2/2: fuse.apk
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:generateJsonModelDebug UP-TO-DATE
:app:externalNativeBuildDebug
  building D:\Dima\markbook.com\fuse\fuse\build\Android\Preview\app\.externalNativeBuild\cmake\debug\obj\armeabi-v7a\libfuse.so
:app:externalNativeBuildDebug FAILED

BUILD FAILED

Total time: 49.735 secs
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(54.3 s)

Build completed in 79.95 seconds
    1 error
fuse: Failed to compile project

UPD: updating to 1.0.1 caused new error:

Configuring (3,1 s)
Compiling syntax tree (3,1 s)
Generating code and data (18,3 s)

Build completed in 24,62 seconds
Fuse 1.0.1 (build 13566)
Configuring (1.4 s)
Compiling syntax tree (4.9 s)
Generating code and data (12.3 s)
Building Android app
2/2: App.apk
C:\Users\User\Desktop\ns\App\build\Android\Preview\app\src\main\java\com\apps\app\App.java:31: error: App is already defined in this compilation unit
import com.fuse.App;
^
C:\Users\User\Desktop\ns\App\build\Android\Preview\app\src\main\java\com\apps\app\App.java:47: error: cannot find symbol
        fuseApp = App.Create(this);
                     ^
  symbol:   method Create(App)
  location: class App
C:\Users\User\Desktop\ns\App\build\Android\Preview\app\src\main\java\com\apps\app\App.java:83: error: cannot find symbol
        fuseApp.onDestroyPre();
               ^
  symbol:   method onDestroyPre()
  location: variable fuseApp of type App
C:\Users\User\Desktop\ns\App\build\Android\Preview\app\src\main\java\com\apps\app\App.java:85: error: cannot find symbol
        fuseApp.onDestroyPost();
               ^
  symbol:   method onDestroyPost()
  location: variable fuseApp of type App
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
## 2/2: App.apk
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:app:compileDebugJavaWithJavac FAILED

BUILD FAILED

Total time: 16.804 secs
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(19.0 s)

Build completed in 37.57 seconds
    1 error
fuse: Failed to compile project

Hmmm… After rebooting and creating new project It began to look like working

FoxPro,

the first problem was caused because of a known issue in Fuse 1.0.0 which didn’t play nicely with the latest Android NDK. Updating to 1.0.1 fixes that, as you found out.

The other problem is another known issue when you name your project “App”. If you give it another name, everything will work just fine.