android - react-native-firebase:compileDebugRenderscript 失败
问题描述
我想将我的 react 本机应用程序连接到我的设备模拟器中。
当我使用以下命令运行我的应用程序时:react-native run-android
我遇到了这个问题: react-native-firebase:compileDebugRenderscript FAILED
应用程序/build.gradle
dependencies { //compile ("com.facebook.react:react-native:0.56.0") { force = true } compile project(':react-native-google-signin') compile project(':react-native-firebase') implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.facebook.react:react-native:0.56.0' // From node_modules implementation project(':react-native-navigation') compile project(':react-native-vector-icons') compile project(':react-native-image-picker') implementation project(':rn-fetch-blob') compile project(':react-native-document-picker') compile project(':react-native-get-real-path') compile project(':react-native-fs') compile project(':react-native-add-calendar-event') implementation "com.google.android.gms:play-services-base:15.0.1" implementation "com.google.firebase:firebase-core:16.0.3" implementation "com.google.firebase:firebase-messaging:17.3.3"
}
2- 安卓/build.gradle
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url 'https://jitpack.io' }
}
}
请注意,在 StackOverflow 上发帖是我最后的选择。
解决方案
推荐阅读
- enjoyhint - 是否可以使用 enjoyhintjs lib 将右键单击设置为事件类型?
- reactjs - React 路由器 dom 在主应用程序中不起作用
- apache-nifi - Nifi:如何从 csv 生成自定义 json 对象
- kotlin - Kodein + Ktor = 冻结 kotlin.collections.HashMap 的突变尝试 - 为什么?
- azure - 如何在 Databricks 上将 Azure Synapse Dataframe 转换为 JSON?
- postgresql - 在 postgresql 中,我们可以使用返回 id 代替 lastval() 吗?
- mysql - SequelizeDatabaseError - 无法添加外键约束
- python - ModuleNotFoundError: No module named - 尝试从另一个文件夹导入文件时
- java - java.time.Duration 的 springdoc-openapi-webflux-ui 问题(ISO 8601 持续时间格式)
- angular - 在 Angular-msal2 中使用 Azure idtoken 请求 API 时出现 Cors 错误