关闭

3 files found with path 'META-INF/native-image/ios-x86_64/jnijavacpp/reflect-config.json'

瞎溜达 1年前 ⋅ 969 阅读
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 3 files found with path 'META-INF/native-image/ios-x86_64/jnijavacpp/reflect-config.json' from inputs:
      - D:\android\gradle\caches\modules-2\files-2.1\org.bytedeco\opencv\4.6.0-1.5.8\cd209488d89fb33d853747b6c3d59aa1515a0970\opencv-4.6.0-1.5.8-ios-x86_64.jar
      - D:\android\gradle\caches\modules-2\files-2.1\org.bytedeco\openblas\0.3.21-1.5.8\948bc16795c2a965f3b2d010832dee9441764f98\openblas-0.3.21-1.5.8-ios-x86_64.jar
      - D:\android\gradle\caches\modules-2\files-2.1\org.bytedeco\javacpp\1.5.8\36c6def5252221de7ac20b48b9582814c5408482\javacpp-1.5.8-ios-x86_64.jar
     Adding a packagingOptions block may help, please refer to
     https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/dsl/ResourcesPackagingOptions
     for more information

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

解决方案:

packagingOptions {
    exclude 'META-INF/proguard/androidx-annotations.pro'
    exclude 'META-INF/native-image/**'
}

全部评论: 0

    我有话说: