我找不到我的错误,但我知道它与 build.gradle 中的版本不匹配有关。
任何帮助表示赞赏。
错误日志:
任务 ':app:transformClassesWithMultidexlistForDebug' 执行失败。
com.android.build.api.transform.TransformException:生成主 dex 列表时出错。
我的 build.gradle 依赖项:
dependencies {
compile project(':react-native-vector-icons')
compile project(':react-native-gesture-handler')
compile project(':react-native-fcm')
implementation fileTree(dir: "libs", include: ["*.jar"])
//implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "com.google.firebase:firebase-core:15.0.2" //17
implementation "com.google.firebase:firebase-messaging:15.0.2" //19
implementation "com.android.support:preference-v7:28.0.0"
implementation "com.google.android.gms:play-services-base:16.1.0"
//implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
}