You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MacOS version : 10.14.3
Android Studio version : 3.3
SDK : 26.1.1
NDK : r16b
I tried to build Tutorial01 on my MacBook Pro with android studio, but it was failed. No problems on gradle sync.
After change '-DANDROID_STL=gnustl_static' on build.gradle file to '-DANDROID_STL=c++_static' or '-DANDROID_STL=c++_shared' , it work correctly. Error codes below.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':Common:generateJsonModelDebug'.
> Build command failed.
Error while executing process /Users/june/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/Users/june/DiligentEngine -B/Users/june/DiligentEngine/Common/NativeApp/Android/.externalNativeBuild/cmake/debug/armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-21 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/june/DiligentEngine/Common/NativeApp/Android/build/intermediates/cmake/debug/obj/armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=/Users/june/Library/Android/sdk/ndk-bundle -DCMAKE_TOOLCHAIN_FILE=/Users/june/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/june/Library/Android/sdk/cmake/3.6.4111459/bin/ninja -GAndroid Gradle - Ninja -DANDROID_PLATFORM=android-21 -DANDROID_TOOLCHAIN=clang -DANDROID_STL=gnustl_static -DENABLE_TESTS=TRUE}
-- Configuring incomplete, errors occurred!
CMake Error at /Users/june/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:249 (message):
gnustl_static 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):
/Users/june/Library/Android/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)
CMakeLists.txt:5 (project)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
The text was updated successfully, but these errors were encountered:
Apparently the configuration is out-of-date, will fix it.
dom607
changed the title
Android tutorial build failed on MacOS ( gnustl_static is no longer support )
Android tutorial build failed on MacOS ( gnustl_static is no longer supported )
Jan 30, 2019
MacOS version : 10.14.3
Android Studio version : 3.3
SDK : 26.1.1
NDK : r16b
I tried to build Tutorial01 on my MacBook Pro with android studio, but it was failed. No problems on gradle sync.
After change '-DANDROID_STL=gnustl_static' on build.gradle file to '-DANDROID_STL=c++_static' or '-DANDROID_STL=c++_shared' , it work correctly. Error codes below.
The text was updated successfully, but these errors were encountered: