程序类型已经存在:android.support.v4

时间:2019-06-22 13:43:46

标签: android react-native

我正在尝试在android上构建我的React本机项目,但出现了此错误消息。

我试图修复库依赖关系,但无法正常工作。我发现了一条建议排除“ android.support.v4.app ..”的帖子。但真的不知道该如何处理     这是我加载的包裹

dependencies {
    implementation project(':react-native-fs')
    implementation project(':react-native-image-resizer')
    implementation project(':react-native-image-picker')
    implementation project(':react-native-device-info')
    implementation project(':react-native-restart')
    implementation project(':react-native-svg')
    implementation project(':react-native-cardview')
    implementation project(':react-native-vector-icons')
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation 'com.facebook.react:react-native:+'

}


this is the result
" com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
  Learn how to resolve the issue at.
  Program type already present: android.support.v4.app.INotificationSideChannel
"

0 个答案:

没有答案