rnc-archive / react-native-webgl

DEPRECATED: use expo-gl – Implements WebGL for react-native
295 stars 73 forks source link

Error compiling Execution failed for task ':react-native-webgl:buildRNWebGLLib #80

Closed thisEdgarMarquez closed 5 years ago

thisEdgarMarquez commented 5 years ago

Hello friends, I have the following error when trying to generate the debug apk of my test app. I hope you can help me

React Native: 58 buildToolsVersion = "28.0.2" minSdkVersion = 17 compileSdkVersion = 28 targetSdkVersion = 27 supportLibVersion = "28.0.0"

> Task :react-native-webgl:buildRNWebGLLib FAILED Android NDK: android-9 is unsupported. Using minimum supported version android-16. make: Entering directory/home/edgarmarquez/imageEditor/node_modules/react-native-webgl/android/src/main/jni' /home/edgarmarquez/Android/Sdk/ndk-bundle/build/core/add-application.mk:178: *** make: Leaving directory `/home/edgarmarquez/imageEditor/node_modules/react-native-webgl/android/src/main/jni' Android NDK: APP_STL gnustl_shared is no longer supported. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information. . Stop.

FAILURE: Build failed with an exception.

AndyEsser commented 5 years ago

If you’re targeting Android 9 (Pie) – you need SDK version 28 (according to: https://source.android.com/setup/start/build-numbers)

sunnylqm commented 5 years ago

https://github.com/react-native-community/react-native-webgl/blob/master/android/src/main/jni/Application.mk#L4 or update gradle which can skip unsupported ndk version

thisEdgarMarquez commented 5 years ago

Thank you, your answers helped me.