Caused by: com.android.builder.merge.DuplicateRelativeFileException: 3 files found with path 'META-INF/substrate/config/reflectionconfig-arm64-ios.json'.
在build.gradle中加入下列形式报错文件路径:
packagingOptions {
exclude 'META-INF/substrate/config/reflectionconfig-aarch64-android.json'
exclude 'META-INF/substrate/config/reflectionconfig-arm64-ios.json'
exclude 'META-INF/substrate/config/reflectionconfig-aarch64-darwin.json'
exclude 'META-INF/substrate/config/reflectionconfig-x86_64-linux.json'
exclude 'META-INF/substrate/config/reflectionconfig.json'
exclude 'META-INF/substrate/config/reflectionconfig-x86_64-darwin.json'
exclude 'META-INF/substrate/config/jniconfig-x86_64-ios.json'
exclude 'META-INF/substrate/config/jniconfig-arm64-ios.json'
exclude 'META-INF/substrate/config/resourcebundles'
exclude 'META-INF/substrate/config/jniconfig-x86_64-darwin.json'
exclude 'META-INF/substrate/config/reflectionconfig-x86_64-ios.json'
exclude 'META-INF/substrate/config/jniconfig-aarch64-android.json'
exclude 'META-INF/substrate/config/jniconfig-aarch64-darwin.json'
exclude 'META-INF/substrate/config/jniconfig-x86_64-linux.json'
}
网友评论