У меня проблема с созданием реагирования на исходный код (0.55.4) на Android.Я получил ошибку: Android/sdk/ndk-bundle/build/core/add-application.mk:178: *** Android NDK: APP_STL gnustl_shared is no longer supported. Please switch to either c++_static or c++_shared
React Собственная версия:
Environment:
OS: macOS 10.14.4
Node: 10.14.2
Yarn: 1.12.3
npm: 6.4.1
Watchman: 4.9.0
Xcode: Xcode 10.2.1 Build version 10E1001
Android Studio: 3.4 AI-183.5429.30.34.5452501
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: github:sinhpn92/react-native#0.55-stable => 0.55.4
Шаги для воспроизведения
build.gradle:
buildscript {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'de.undercouch:gradle-download-task:3.4.3'
classpath 'com.google.gms:google-services:3.2.1'
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
url "https://maven.google.com" // Google's Maven repository
}
google()
}
}
app /build.gradle:
android {
...
configurations.all {
exclude group: 'com.facebook.react', module: 'react-native'
}
}
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
// compile "com.facebook.react:react-native:0.55.4" // From node_modules
compile project(':ReactAndroid')
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
...
settings.gradle:
include ':ReactAndroid'
project(':ReactAndroid').projectDir = new File(rootProject.projectDir, '../node_modules/react-native/ReactAndroid')
local.properties:
sdk.dir=/Users/xxx/Library/Android/sdk
ndk.dir=/Users/xxx/Library/Android/sdk/ndk-bundle
gradle-wrapper.properties:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
Кто-нибудь предлагает решить эту версию?Спасибо за ваше время по моей проблеме