How to Fixed Error?


#1

C:\Program Files (x86)\Fuse\Templates\Projects\App\App1>fuse build -target=android --run
Uno 1.9.0 (dev-build) Windows 10 x64 N/A
Copyright © 2015-2018 Fusetools

Configuring
0.18 s
Target is up-to-date – stopping build (pass --force to override)
Building Android app

CMake Error at C:/Users/Administrator/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake:265 (message):
gnustl_shared is no longer supported. Please switch to either c++_shared
or c++_static. See
https://developer.android.com/ndk/guides/cpp-support.html for more
information.
Call Stack (most recent call first):
C:/Users/Administrator/AppData/Local/Android/Sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)
CMakeLists.txt:2 (project)

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:generateJsonModelDebug’.

Build command failed.
Error while executing ‘C:\Users\Administrator\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe’ with arguments {-HC:\Program Files (x86)\Fuse\Templates\Projects\App\App1\build\Android\Debug\app\src\main -BC:\Program Files (x86)\Fuse\Templates\Projects\App\App1\build\Android\Debug\app.externalNativeBuild\cmake\debug\armeabi-v7a -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Program Files (x86)\Fuse\Templates\Projects\App\App1\build\Android\Debug\app.externalNativeBuild\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:\Users\Administrator\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=C:\Users\Administrator\AppData\Local\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=16 -DCMAKE_BUILD_TYPE=Release -DANDROID_STL=gnustl_shared -DANDROID_PLATFORM=android-9 -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=C:/Users/Administrator/AppData/Local/Android/Sdk/ndk-bundle}
– android-9 is unsupported. Using minimum supported version 16.
– Configuring incomplete, errors occurred!
CMake Error at C:/Users/Administrator/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake:265 (message):
gnustl_shared is no longer supported. Please switch to either c++_shared
or c++_static. See
https://developer.android.com/ndk/guides/cpp-support.html for more
information.
Call Stack (most recent call first):
C:/Users/Administrator/AppData/Local/Android/Sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)
CMakeLists.txt:2 (project)

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

(unknown): E0200: Android build failed

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 FAILED

BUILD FAILED

Total time: 7.16 secs
8.29 s

Build completed in 8.48 seconds
1 error

fuse: Errors were encountered while building the project


#2

I believe the problem is that you’re running/updated to the latest android and need to downgrade the android NDK used for your current fuse version(1.9.0), have a look here how to do that: Oct 2018 - Fresh install of Android with fuse 1.9.0 on Windows 10 64bit