gpt4 book ai didi

javascript - list 合并在 native react 中失败

转载 作者:搜寻专家 更新时间:2023-11-01 09:20:15 25 4
gpt4 key购买 nike

在运行 react-native run-android 时出现以下异常。我尝试了一些我在谷歌上发现的更改,但没有用。下面是我的异常和 gradle 文件。 Google 方面有更新吗?我怎样才能解决这个问题?我从昨天开始就面临这个问题。

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91

构建.gradle,..\app

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

dependencies {
implementation project(':react-native-webview')
implementation project(':react-native-i18n')
implementation project(':react-native-device-info')
implementation project(':@react-native-community_netinfo')
implementation project(':@react-native-community_async-storage')
implementation project(':react-native-camera')
implementation project(':react-native-vector-icons')
implementation project(':react-native-gesture-handler')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" }

buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 27
supportLibVersion = "28.0.0"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://maven.google.com" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}


task wrapper(type: Wrapper) {
gradleVersion = '4.7'
distributionUrl = distributionUrl.replace("bin", "all")

请建议..谢谢

最佳答案

我用

解决了这个问题
npm uninstall react-native-device-info

然后

npm install --save react-native-device-info

最新版本应该是2.1.2

关于javascript - list 合并在 native react 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56661296/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com