我在“React-Native Run-Android”上面临这个问题。我没有工作我的代码大约2个月。今天,我不得不做一些改变。但我不能在模拟器上运行。
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Configure project :react-native-image-crop-picker
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
/Users/{{username}}/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/8ff87d77ddde6374a9d9faf5f292366f/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/{{username}}/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/8ff87d77ddde6374a9d9faf5f292366f/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to process resources, see aapt output above for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUİLD FAILED in 2s
53 actionable tasks: 1 executed, 52 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
Android/Build.Gradle
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
}
尝试将compileSdkVersion更改为:
compileSdkVersion 28
fontVariationSettings是api级别28。来源
null 这工作得很好,但对于下面的命令,我得到一个错误 错误: > 错误:任务“:app:InstallRelease”执行失败。 com.android.builder.testing.api.deviceException:com.android.ddmlib.installexception:install_failed_update_incompatible:包io.nativebase
配置项目:React-Native-Video警告:配置“提供”已过时,并已替换为“仅编译”。将于2018年底移除。有关详细信息,请参阅:http://d.android.com/r/tools/update-dependency-configurations.html警告:配置“compile”已过时,已被“implementation”和“api”所取代。将于2018年底移除。有关更多信息,请
\android\app\build\中介\清单\完整\调试\AndroidManifest.xml:61: AAPT:错误:资源mipmap/ic_notif(又名...: mipmap/ic_notif)未找到。 错误:处理清单失败。 失败:构建失败,出现异常。 问题所在:任务“:app:processDebugResources”的执行失败。无法处理资源,有关详细信息,请参阅上面的 aapt
我正在使用assembleRelease准备发布构建,但我得到了这个错误。 配置项目:项目中的应用程序配置“编译”:不推荐使用“app”。请改用“实现”。 配置项目 :rn-fetch-blob CompileOptions.bootClasspath 属性已被弃用,并计划在 Gradle 5.0 中删除。请改用 CompileOptions.bootstrapClasspath 属性。 配置项目
失败:生成失败,出现异常。 > 错误:任务“:app:CompiledEbugJavaWithJavac”执行失败。 编译失败;有关详细信息,请参阅编译器错误输出。