Error Exporting Android App


#1

We are trying to export a fuse app “Android” from imac device and we get the folowing error, any help to fix ?
thanks in advance.

FAILURE: Build failed with an exception.

  • What went wrong:

A problem occurred configuring project ‘:app’.

> No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android

  • Try:

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

Incremental java compilation is an incubating feature.

BUILD FAILED

Total time: 4.602 secs

5.20 s

Build completed in 5.32 seconds

1 error

(unknown): E0200: Android build failed

fuse: Errors were encountered while building the project


#2

This happens with NDK versions above 16 where the toolchains folder has been removed from.

Get this folder from version 16 download previous versions of NDK.

Extract the toolchains folder from the ZIP and copy it in C:\Users\<User>\AppData\Local\Fusetools\Fuse\Android\AndroidSDK\ndk-bundle\toolchains.


#4

My dear Enrico,

Thanks for help, I do as you mentioned above but I got another error please do help me with it.

Thanks,

CMake Error: Could not create named generator Android Gradle - Ninja

Generators
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files.
Xcode = Generate Xcode project files.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
CodeLite - Ninja = Generates CodeLite project files.
CodeLite - Unix Makefiles = Generates CodeLite project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.
Kate - Ninja = Generates Kate project files.
Kate - Unix Makefiles = Generates Kate project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.

FAILURE: Build failed with an exception.

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

Build command failed.
Error while executing ‘/Users/skilledtechimac/Library/Android/sdk/cmake/3.10.2.4988404/bin/cmake’ with arguments {-H/Users/skilledtechimac/Fuse/Testing/build/Android/Debug/app/src/main -B/Users/skilledtechimac/Fuse/Testing/build/Android/Debug/app/.externalNativeBuild/cmake/debug/armeabi-v7a -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=/Users/skilledtechimac/Library/Android/sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/skilledtechimac/Fuse/Testing/build/Android/Debug/app/.externalNativeBuild/cmake/debug/obj/armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/Users/skilledtechimac/Library/Android/sdk/cmake/3.10.2.4988404/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/Users/skilledtechimac/Library/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=/Users/skilledtechimac/Library/Android/sdk/ndk-bundle}
CMake Error: Could not create named generator Android Gradle - Ninja

Generators
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files.
Xcode = Generate Xcode project files.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
CodeLite - Ninja = Generates CodeLite project files.
CodeLite - Unix Makefiles = Generates CodeLite project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.
Kate - Ninja = Generates Kate project files.
Kate - Unix Makefiles = Generates Kate project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.

  • 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

fuse: Errors were encountered while building the project
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: 5.143 secs
5.79 s

Build completed in 5.90 seconds
1 error


#5

Hi guys,

after many tries finally, the problem fixed and I just wanna share the solution here maybe someone needs it.

As Mr. Enrico said this problem happens with NDK versions above 16 where the toolchains folder has been removed from.

You just need to download NDK version 15, not 16 and then just do replace the whole “ndk-bundle” folder by the files that you downloaded.

and thats all.

All the best ,