打包apk报错 app:checkReleaseDuplicateClasses
来源:14-6 打包发布React Native项目【收获果实】
慕婉清5431680
2020-04-07
打包apk报错 What went wrong: Execution failed for task ‘:app:checkReleaseDuplicateClasses’.谷歌没能解决,老师有空帮忙看看
2回答
-
慕婉清5431680
提问者
2020-04-08
Executing tasks: [:app:assembleDebug] in project /Users/albertyang/Desktop/Github_RN-yc/android
> Task :@react-native-community_masked-view:preBuild UP-TO-DATE
> Task :@react-native-community_masked-view:preDebugBuild UP-TO-DATE
> Task :@react-native-community_masked-view:checkDebugManifest
> Task :@react-native-community_masked-view:generateDebugBuildConfig
> Task :@react-native-community_masked-view:compileDebugAidl NO-SOURCE
> Task :@react-native-community_masked-view:compileDebugRenderscript NO-SOURCE
> Task :@react-native-community_masked-view:generateDebugResValues
> Task :@react-native-community_masked-view:generateDebugResources
> Task :@react-native-community_masked-view:processDebugManifest
> Task :@react-native-community_masked-view:packageDebugResources
> Task :@react-native-community_masked-view:generateDebugRFile
> Task :@react-native-community_masked-view:prepareLintJar UP-TO-DATE
> Task :@react-native-community_masked-view:generateDebugSources
> Task :@react-native-community_masked-view:javaPreCompileDebug
> Task :@react-native-community_masked-view:compileDebugJavaWithJavac
> Task :@react-native-community_masked-view:bundleLibCompileDebug
> Task :app:generatePackageList
> Task :app:preBuild
> Task :react-native-code-push:preBuild UP-TO-DATE
> Task :react-native-code-push:preDebugBuild UP-TO-DATE
> Task :react-native-code-push:checkDebugManifest
> Task :react-native-code-push:processDebugManifest
> Task :react-native-gesture-handler:preBuild UP-TO-DATE
> Task :react-native-gesture-handler:preDebugBuild UP-TO-DATE
> Task :react-native-gesture-handler:checkDebugManifest
> Task :react-native-gesture-handler:processDebugManifest
> Task :react-native-reanimated:preBuild UP-TO-DATE
> Task :react-native-reanimated:preDebugBuild UP-TO-DATE
> Task :react-native-reanimated:checkDebugManifest
> Task :react-native-reanimated:processDebugManifest
> Task :react-native-safe-area-context:preBuild UP-TO-DATE
> Task :react-native-safe-area-context:preDebugBuild UP-TO-DATE
> Task :react-native-safe-area-context:checkDebugManifest
> Task :react-native-safe-area-context:processDebugManifest
> Task :react-native-screens:preBuild UP-TO-DATE
> Task :react-native-screens:preDebugBuild UP-TO-DATE
> Task :react-native-screens:checkDebugManifest
> Task :react-native-screens:processDebugManifest
> Task :react-native-splash-screen:preBuild UP-TO-DATE
> Task :react-native-splash-screen:preDebugBuild UP-TO-DATE
> Task :react-native-splash-screen:checkDebugManifest
> Task :react-native-splash-screen:processDebugManifest
> Task :react-native-vector-icons:preBuild UP-TO-DATE
> Task :react-native-vector-icons:preDebugBuild UP-TO-DATE
> Task :react-native-vector-icons:checkDebugManifest
> Task :react-native-vector-icons:processDebugManifest
> Task :react-native-webview:preBuild UP-TO-DATE
> Task :react-native-webview:preDebugBuild UP-TO-DATE
> Task :react-native-webview:checkDebugManifest
> Task :react-native-webview:processDebugManifest
> Task :app:preDebugBuild UP-TO-DATE
> Task :react-native-code-push:compileDebugAidl NO-SOURCE
> Task :react-native-gesture-handler:compileDebugAidl NO-SOURCE
> Task :react-native-reanimated:compileDebugAidl NO-SOURCE
> Task :react-native-safe-area-context:compileDebugAidl NO-SOURCE
> Task :react-native-splash-screen:compileDebugAidl NO-SOURCE
> Task :react-native-screens:compileDebugAidl NO-SOURCE
> Task :react-native-vector-icons:compileDebugAidl NO-SOURCE
> Task :react-native-webview:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :@react-native-community_masked-view:packageDebugRenderscript NO-SOURCE
> Task :react-native-code-push:packageDebugRenderscript NO-SOURCE
> Task :react-native-gesture-handler:packageDebugRenderscript NO-SOURCE
> Task :react-native-reanimated:packageDebugRenderscript NO-SOURCE
> Task :react-native-safe-area-context:packageDebugRenderscript NO-SOURCE
> Task :react-native-screens:packageDebugRenderscript NO-SOURCE
> Task :react-native-splash-screen:packageDebugRenderscript NO-SOURCE
> Task :react-native-vector-icons:packageDebugRenderscript NO-SOURCE
> Task :react-native-webview:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:checkDebugManifest UP-TO-DATE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:bundleDebugJsAndAssets SKIPPED
> Task :app:prepareLintJar UP-TO-DATE
> Task :app:generateDebugSources UP-TO-DATE
> Task :react-native-code-push:generateDebugBuildConfig
> Task :react-native-code-push:compileDebugRenderscript NO-SOURCE
> Task :react-native-code-push:generateDebugResValues
> Task :react-native-code-push:generateDebugResources
> Task :react-native-code-push:packageDebugResources
> Task :react-native-code-push:generateDebugRFile
> Task :react-native-code-push:prepareLintJar UP-TO-DATE
> Task :react-native-code-push:generateDebugSources
> Task :react-native-code-push:javaPreCompileDebug
> Task :react-native-code-push:compileDebugJavaWithJavac
注: /Users/albertyang/Desktop/Github_RN-yc/node_modules/react-native-code-push/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :react-native-code-push:bundleLibCompileDebug
> Task :react-native-gesture-handler:generateDebugBuildConfig
> Task :react-native-gesture-handler:compileDebugRenderscript NO-SOURCE
> Task :react-native-gesture-handler:generateDebugResValues
> Task :react-native-gesture-handler:generateDebugResources
> Task :react-native-gesture-handler:packageDebugResources
> Task :react-native-gesture-handler:generateDebugRFile
> Task :react-native-gesture-handler:prepareLintJar UP-TO-DATE
> Task :react-native-gesture-handler:generateDebugSources
> Task :react-native-gesture-handler:javaPreCompileDebug
> Task :react-native-gesture-handler:compileDebugJavaWithJavac
注: /Users/albertyang/Desktop/Github_RN-yc/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :react-native-gesture-handler:bundleLibCompileDebug
> Task :react-native-reanimated:generateDebugBuildConfig
> Task :react-native-reanimated:compileDebugRenderscript NO-SOURCE
> Task :react-native-reanimated:generateDebugResValues
> Task :react-native-reanimated:generateDebugResources
> Task :react-native-reanimated:packageDebugResources
> Task :react-native-reanimated:generateDebugRFile
> Task :react-native-reanimated:prepareLintJar UP-TO-DATE
> Task :react-native-reanimated:generateDebugSources
> Task :react-native-reanimated:javaPreCompileDebug
> Task :react-native-reanimated:compileDebugJavaWithJavac
注: /Users/albertyang/Desktop/Github_RN-yc/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/albertyang/Desktop/Github_RN-yc/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :react-native-reanimated:bundleLibCompileDebug
> Task :react-native-safe-area-context:generateDebugBuildConfig
> Task :react-native-safe-area-context:compileDebugRenderscript NO-SOURCE
> Task :react-native-safe-area-context:generateDebugResValues
> Task :react-native-safe-area-context:generateDebugResources
> Task :react-native-safe-area-context:packageDebugResources
> Task :react-native-safe-area-context:generateDebugRFile
> Task :react-native-safe-area-context:prepareLintJar UP-TO-DATE
> Task :react-native-safe-area-context:generateDebugSources
> Task :react-native-safe-area-context:javaPreCompileDebug
> Task :react-native-safe-area-context:compileDebugJavaWithJavac
> Task :react-native-safe-area-context:bundleLibCompileDebug
> Task :react-native-screens:generateDebugBuildConfig
> Task :react-native-screens:compileDebugRenderscript NO-SOURCE
> Task :react-native-screens:generateDebugResValues
> Task :react-native-screens:generateDebugResources
> Task :react-native-screens:packageDebugResources
> Task :react-native-screens:generateDebugRFile
> Task :react-native-screens:prepareLintJar UP-TO-DATE
> Task :react-native-screens:generateDebugSources
> Task :react-native-screens:javaPreCompileDebug
> Task :react-native-screens:compileDebugJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :react-native-screens:bundleLibCompileDebug
> Task :react-native-splash-screen:generateDebugBuildConfig
> Task :react-native-splash-screen:compileDebugRenderscript NO-SOURCE
> Task :react-native-splash-screen:generateDebugResValues
> Task :react-native-splash-screen:generateDebugResources
> Task :react-native-splash-screen:packageDebugResources
> Task :react-native-splash-screen:generateDebugRFile
> Task :react-native-splash-screen:prepareLintJar UP-TO-DATE
> Task :react-native-splash-screen:generateDebugSources
> Task :react-native-splash-screen:javaPreCompileDebug
> Task :react-native-splash-screen:compileDebugJavaWithJavac
> Task :react-native-splash-screen:bundleLibCompileDebug
> Task :react-native-vector-icons:generateDebugBuildConfig
> Task :react-native-vector-icons:compileDebugRenderscript NO-SOURCE
> Task :react-native-vector-icons:generateDebugResValues
> Task :react-native-vector-icons:generateDebugResources
> Task :react-native-vector-icons:packageDebugResources
> Task :react-native-vector-icons:generateDebugRFile
> Task :react-native-vector-icons:prepareLintJar UP-TO-DATE
> Task :react-native-vector-icons:generateDebugSources
> Task :react-native-vector-icons:javaPreCompileDebug
> Task :react-native-vector-icons:compileDebugJavaWithJavac
> Task :react-native-vector-icons:bundleLibCompileDebug
> Task :react-native-webview:generateDebugBuildConfig
> Task :react-native-webview:compileDebugRenderscript NO-SOURCE
> Task :react-native-webview:generateDebugResValues
> Task :react-native-webview:generateDebugResources
> Task :react-native-webview:packageDebugResources
> Task :react-native-webview:generateDebugRFile
> Task :react-native-webview:compileDebugKotlin
> Task :react-native-webview:prepareLintJar UP-TO-DATE
> Task :react-native-webview:generateDebugSources
> Task :react-native-webview:javaPreCompileDebug
> Task :react-native-webview:compileDebugJavaWithJavac
注: /Users/albertyang/Desktop/Github_RN-yc/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/albertyang/Desktop/Github_RN-yc/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
> Task :react-native-webview:bundleLibCompileDebug
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :@react-native-community_masked-view:mergeDebugShaders
> Task :@react-native-community_masked-view:compileDebugShaders
> Task :@react-native-community_masked-view:generateDebugAssets
> Task :@react-native-community_masked-view:packageDebugAssets
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders UP-TO-DATE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :react-native-code-push:mergeDebugShaders
> Task :react-native-code-push:compileDebugShaders
> Task :react-native-code-push:generateDebugAssets
> Task :react-native-code-push:packageDebugAssets
> Task :react-native-gesture-handler:mergeDebugShaders
> Task :react-native-gesture-handler:compileDebugShaders
> Task :react-native-gesture-handler:generateDebugAssets
> Task :react-native-gesture-handler:packageDebugAssets
> Task :react-native-reanimated:mergeDebugShaders
> Task :react-native-reanimated:compileDebugShaders
> Task :react-native-reanimated:generateDebugAssets
> Task :react-native-reanimated:packageDebugAssets
> Task :react-native-safe-area-context:mergeDebugShaders
> Task :react-native-safe-area-context:compileDebugShaders
> Task :react-native-safe-area-context:generateDebugAssets
> Task :react-native-safe-area-context:packageDebugAssets
> Task :react-native-screens:mergeDebugShaders
> Task :react-native-screens:compileDebugShaders
> Task :react-native-screens:generateDebugAssets
> Task :react-native-screens:packageDebugAssets
> Task :react-native-splash-screen:mergeDebugShaders
> Task :react-native-splash-screen:compileDebugShaders
> Task :react-native-splash-screen:generateDebugAssets
> Task :react-native-splash-screen:packageDebugAssets
> Task :react-native-vector-icons:mergeDebugShaders
> Task :react-native-vector-icons:compileDebugShaders
> Task :react-native-vector-icons:generateDebugAssets
> Task :react-native-vector-icons:packageDebugAssets
> Task :react-native-webview:mergeDebugShaders
> Task :react-native-webview:compileDebugShaders
> Task :react-native-webview:generateDebugAssets
> Task :react-native-webview:packageDebugAssets
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:copyDebugIconFonts UP-TO-DATE
> Task :app:mainApkListPersistenceDebug UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:processDebugManifest UP-TO-DATE
> Task :app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
/Users/albertyang/Desktop/Github_RN-yc/android/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml:14: AAPT: error: resource mipmap/ic_launcher_round (aka com.github_rn:mipmap/ic_launcher_round) not found.
error: failed processing manifest.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 21s
134 actionable tasks: 111 executed, 23 up-to-date
00 -
CrazyCodeBoy
2020-04-08
将完整报错信息贴出来我帮你分析下
012020-04-08
相似问题