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 ,


#6

Done installing android
Uno 1.8.1 (build 6782) Windows 10 x64 808e37c
Copyright © 2015-2018 Fusetools

Configuring
1.89 s
Compiling syntax tree
1.40 s
Generating code and data
14.46 s
Building Android app

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.

(unknown): E0200: Android build failed

fuse: Errors were encountered while building the project
Incremental java compilation is an incubating feature.

BUILD FAILED

Total time: 5.858 secs
7.19 s

Build completed in 24.95 seconds
1 error

I have this error I can not solve it changing of version some segerencia


#7

already replied to you here: No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android


#8

Hi developerHector

after installing android You just need to download NDK version 15 from here https://developer.android.com/ndk/downloads/older_releases#ndk-16b-downloads

extract the file > copy all files > go to this path “/Users/yourComputer/Library/Android/sdk/ndk-bundle” if you are using mac, and “C:\Users&lt;User>\AppData\Local\Fusetools\Fuse\Android\AndroidSDK\ndk-bundle” if Windows

just replace all files in the ndk-bundle. with files that you copied.

and it will work with you now.


#9

hi @aeq I followed the steps But the same problem does not work


#10

Hi dude, I can’t help you without any info; I’m not a magician but long story short, you should just install the latest release: https://github.com/fuse-open/fuse-studio/releases

  1. Download or clone the latest fuselibs: https://github.com/fuse-open/fuselibs

  2. Then create a “.unoconfig” file in your project directory pointing to the fuselibs/Source folder by adding this one line:
    Packages.SourcePaths += /path/to/Source

  3. Run the command uno doctor to tell fuse to make use of the new source.

…and Bobs your uncle.


#11

thank you, problem is fixed I’ve uninstall version 1.9.0 and install last version 1.10.0 ,version (r19b), i think problem in android Gradle plugin version because latest NDK removed support for mips abi, and earler version of android gradle plugin still check for the existance of mips toolchain.