Export for Android not working on Mac


#1

Latest version of both Android Studio and Fuse Tools using the example project gives the following error when attempting to use the Export For Android function.

16:47:41.475 [INFO] [org.gradle.api.Project] External native generate JSON debug: executing cmake Executable : /Users/User/Library/Android/sdk/cmake/bin/cmake

arguments :

-H/Users/User/Fuse/Example/build/Android/Debug/app/src/main

-B/Users/User/Fuse/Example/build/Android/Debug/app/.externalNativeBuild/cmake/debug/armeabi-v7a

-GAndroid Gradle - Ninja

-DANDROID_ABI=armeabi-v7a

-DANDROID_NDK=/Users/User/Library/Android/sdk/ndk-bundle

-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/User/Fuse/Example/build/Android/Debug/app/build/intermediates/cmake/debug/obj/armeabi-v7a

-DCMAKE_BUILD_TYPE=Debug

-DCMAKE_MAKE_PROGRAM=/Users/User/Library/Android/sdk/cmake/bin/ninja

-DCMAKE_TOOLCHAIN_FILE=/Users/User/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-13

-DANDROID_TOOLCHAIN=gcc

-DANDROID_NDK=/Users/User/Library/Android/sdk/ndk-bundle/

jvmArgs :

16:47:41.525 [ERROR] [org.gradle.BuildExceptionReporter]

16:47:41.525 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.

16:47:41.525 [ERROR] [org.gradle.BuildExceptionReporter]

16:47:41.525 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:

16:47:41.525 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:app:generateJsonModelDebug’.

16:47:41.525 [ERROR] [org.gradle.BuildExceptionReporter] > Build command failed.

16:47:41.526 [ERROR] [org.gradle.BuildExceptionReporter] Error while executing ‘/Users/User/Library/Android/sdk/cmake/bin/cmake’ with arguments {-H/Users/User/Fuse/Example/build/Android/Debug/app/src/main -B/Users/User/Fuse/Example/build/Android/Debug/app/.externalNativeBuild/cmake/debug/armeabi-v7a -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=/Users/User/Library/Android/sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/User/Fuse/Example/build/Android/Debug/app/build/intermediates/cmake/debug/obj/armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/Users/User/Library/Android/sdk/cmake/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/Users/User/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-13 -DANDROID_TOOLCHAIN=gcc -DANDROID_NDK=/Users/User/Library/Android/sdk/ndk-bundle/}

16:47:41.526 [ERROR] [org.gradle.BuildExceptionReporter] CMake Error: Could not create named generator Android Gradle - Ninja

16:47:41.526 [ERROR] [org.gradle.BuildExceptionReporter]

16:47:41.526 [ERROR] [org.gradle.BuildExceptionReporter] Generators

16:47:41.526 [ERROR] [org.gradle.BuildExceptionReporter] Unix Makefiles = Generates standard UNIX makefiles.

16:47:41.526 [ERROR] [org.gradle.BuildExceptionReporter] Ninja = Generates build.ninja files.

16:47:41.526 [ERROR] [org.gradle.BuildExceptionReporter] Xcode = Generate Xcode project files.

16:47:41.527 [ERROR] [org.gradle.BuildExceptionReporter] CodeBlocks - Ninja = Generates CodeBlocks project files.

16:47:41.527 [ERROR] [org.gradle.BuildExceptionReporter] CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.

16:47:41.527 [ERROR] [org.gradle.BuildExceptionReporter] CodeLite - Ninja = Generates CodeLite project files.

16:47:41.527 [ERROR] [org.gradle.BuildExceptionReporter] CodeLite - Unix Makefiles = Generates CodeLite project files.

16:47:41.527 [ERROR] [org.gradle.BuildExceptionReporter] Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.

16:47:41.527 [ERROR] [org.gradle.BuildExceptionReporter] Sublime Text 2 - Unix Makefiles

16:47:41.528 [ERROR] [org.gradle.BuildExceptionReporter] = Generates Sublime Text 2 project files.

16:47:41.528 [ERROR] [org.gradle.BuildExceptionReporter] Kate - Ninja = Generates Kate project files.

16:47:41.528 [ERROR] [org.gradle.BuildExceptionReporter] Kate - Unix Makefiles = Generates Kate project files.

16:47:41.528 [ERROR] [org.gradle.BuildExceptionReporter] Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.

16:47:41.528 [ERROR] [org.gradle.BuildExceptionReporter] Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.