1、Execution failed for task ‘:react-native-update:compileDebugNdk’
路径:android->app->build.gradlew
android {
sourceSets.main {
jni.srcDirs = []
}
}
路径:android->gradle.properties
android.useDeprecatedNdk=true
2、react-native 终端输入命令gradlew 输入命令:找不到或无法加载主类 org.gradle.wrapper.GradleWrapperMain
原因:android/gradle/wrapper/gradle-wrapper.jar 文件缺失
方法:重新新建项目 || 直接拷贝
3、运行报错:A problem occurred starting process ‘command ‘node’’
android/app/build.gradle
project.ext.react = [
nodeExecutableAndArgs : ["/usr/local/bin/node"],
]