本文介绍了ionic2 - 任务“:processDebugManifest"执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我 ionic cordova build android --release 错误来了

ios 已经编译成功了,android 无法编译,第一次遇到这个问题,在编译之前很有趣

最近,我在我的项目中添加了一些 codova 插件和第三方登录 sdk,现在不适合我

zhungzhens-MacBook-Air:minan zhungzhenzhungzhen$ ionic cordova build android运行应用脚本构建:--build --iscordovaserve --externalIpRequired --nobrowser[15:18:50] 构建开发开始...[15:18:50] 清洁开始...[15:18:50] 清洁在 8 毫秒内完成[15:18:50] 复制开始...[15:18:50] 转译开始...[15:18:55] 转译在 5.83 秒内完成[15:18:55] 预处理开始...[15:18:56] 深度链接开始...[15:18:56] 深度链接在 105 毫秒内完成[15:18:56] 预处理在 106 毫秒内完成[15:18:56] webpack 开始...[15:18:56] 复制在 6.34 秒内完成[15:19:10] webpack 在 14.86 秒内完成[15:19:10] sass 开始...[15:19:12] sass 在 1.75 秒内完成[15:19:12] 后处理开始...[15:19:12] 后处理在 8 毫秒内完成[15:19:12] lint 开始...[15:19:12] 构建开发在 22.64 秒内完成>科尔多瓦构建安卓⠙ 运行命令 [15:19:22] lint 在 10.16 秒内完成✖ 运行命令 - 失败![错误] Cordova 遇到错误.您可以通过直接运行上面的 Cordova 命令获得更多信息.[错误] 运行 cordova build android 时出错(退出代码 1):(截断)... rscript UP-TO-DATE:CordovaLib:compileDebugRenderscript 最新:CordovaLib:generateDebugResValues 最新:CordovaLib:generateDebugResources 最新:CordovaLib:packageDebugResources 最新:CordovaLib:processDebugManifest 最新:CordovaLib:generateDebugBuildConfig 最新:CordovaLib:processDebugResources 最新:CordovaLib:generateDebugSources 最新:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE:CordovaLib:compileDebugJavaWithJavac 最新:CordovaLib:processDebugJavaRes 最新:CordovaLib:transformResourcesWithMergeJavaResForDebug 最新:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug 最新:CordovaLib:mergeDebugJniLibFolders 最新:CordovaLib:transformNative_libsWithMergeJniLibsForDebug 最新:CordovaLib:transformNative_libsWithSyncJniLibsForDebug 最新:CordovaLib:bundleDebug 最新:CordovaLib:preReleaseBuild UP-TO-DATE:CordovaLib:checkReleaseManifest:CordovaLib:prepareReleaseDependencies:CordovaLib:compileReleaseAidl 最新:CordovaLib:compileReleaseNdk 最新:CordovaLib:copyReleaseLint 最新:CordovaLib:mergeReleaseShaders 最新:CordovaLib:compileReleaseShaders 最新:CordovaLib:generateReleaseAssets 最新:CordovaLib:mergeReleaseAssets 最新:CordovaLib:mergeReleaseProguardFiles 最新:CordovaLib:packageReleaseRenderscript 最新:CordovaLib:compileReleaseRenderscript 最新:CordovaLib:generateReleaseResValues 最新:CordovaLib:generateReleaseResources 最新:CordovaLib:packageReleaseResources 最新:CordovaLib:processReleaseManifest 最新:CordovaLib:generateReleaseBuildConfig 最新:CordovaLib:processReleaseResources 最新:CordovaLib:generateReleaseSources 最新:CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE:CordovaLib:compileReleaseJavaWithJavac 最新:CordovaLib:processReleaseJavaRes 最新:CordovaLib:transformResourcesWithMergeJavaResForRelease 最新:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease 最新:CordovaLib:mergeReleaseJniLibFolders 最新:CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE:CordovaLib:transformNative_libsWithSyncJniLibsForRelease 最新:CordovaLib:bundleRelease 最新:prepareComAndroidSupportAnimatedVectorDrawable2531Library UP-TO-DATE:prepareComAndroidSupportAppcompatV72531Library UP-TO-DATE:prepareComAndroidSupportCardviewV72531Library UP-TO-DATE:prepareComAndroidSupportCustomtabs2531Library UP-TO-DATE:prepareComAndroidSupportSupportCompat2531Library UP-TO-DATE:prepareComAndroidSupportSupportCoreUi2531Library UP-TO-DATE:prepareComAndroidSupportSupportCoreUtils2531Library UP-TO-DATE:prepareComAndroidSupportSupportFragment2531Library UP-TO-DATE:prepareComAndroidSupportSupportMediaCompat2531Library UP-TO-DATE:prepareComAndroidSupportSupportV42531Library UP-TO-DATE:prepareComAndroidSupportSupportVectorDrawable2531Library UP-TO-DATE:prepareComCommit451PhotoView124Library UP-TO-DATE:prepareComFacebookAndroidFacebookAndroidSdk4260Library UP-TO-DATE:prepareOpenDefault206Library UP-TO-DATE:prepareOrgApacheCordovaCordovaLib623DebugLibrary:prepareDebugDependencies:compileDebugAidl:compileDebugRenderscript:generateDebugBuildConfig:generateDebugResValues:generateDebugResources:mergeDebugResources:processDebugManifest/Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml:54:9-242错误:AndroidManifest.xml:54:9-242 中的元素 activity#com.zhungzhen.minanapp.wxapi.WXEntryActivity 与在 AndroidManifest.xml:21:9-27:20 声明的元素/Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml 错误:验证失败,退出有关清单合并的更多信息,请参阅 http://g.co/androidstudio/manifest-merger.:processDebugManifest 失败FAILURE:构建失败并出现异常.* 什么地方出了错:任务:processDebugManifest"执行失败.>清单合并失败并出现多个错误,请参阅日志* 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪.使用 --info 或 --debug 选项运行以获得更多日志输出.构建失败总时间:11.711 秒错误:/Users/zhungzhenzhungzhen/desktop/minan/platforms/android/gradlew:命令失败,退出代码为 1 错误输出:/Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml:54:9-242 错误:AndroidManifest.xml:54:9-242 中的元素 activity#com.zhungzhen.minanapp.wxapi.WXEntryActivity 与在 AndroidManifest.xml:21:9-27:20 声明的元素/Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml 错误:验证失败,退出FAILURE:构建失败并出现异常.* 什么地方出了错:任务:processDebugManifest"执行失败.>清单合并失败并出现多个错误,请参阅日志* 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪.使用 --info 或 --debug 选项运行以获得更多日志输出.

两个插件请求不同版本的 android 支持图书馆在这里.

这是我从网上找到的,是插件问题吗?

这是我的插件列表

com-sarriaroman-photoviewer 1.1.10 照片查看器"科尔多瓦插件控制台 1.0.5控制台"科尔多瓦插件设备 1.1.4 设备"cordova-plugin-facebook4 1.9.1 Facebook 连接"cordova-plugin-qqsdk 0.9.6 QQSDK"科尔多瓦插件sharesdk 0.1.0ShareSDK"科尔多瓦插件闪屏 4.0.3 闪屏"科尔多瓦插件状态栏 2.2.1 状态栏"科尔多瓦插件微信 2.0.0 微信"cordova-plugin-weibosdk 0.6.0 微博SDK"科尔多瓦插件白名单 1.3.1 白名单"cordova-plugin-x-socialsharing 5.1.8 社交分享"es6-promise-plugin 4.1.0 承诺"ionic-plugin-keyboard 2.2.1 键盘"

更新!!!

最后我解决了这个问题,并在答案中写下了方法.

解决方案

一般情况下,这个错误是cordova插件问题.

对于我的项目来说是weibosdk插件问题

我刚刚删除了我的weibosdk插件,并在我的项目中发现了一个新的最新插件,然后构建成功.

cordova 插件 rm cordova-plugin-weibosdk

所以当你遇到这个问题时,输入 ionic cordova plugin list 列出你在项目中添加的内容,然后检查你的插件是否过期或其他问题.

如果您有其他建议,请在此帖子中发表评论.谢谢!

When I ionic cordova build android --release error coming

ios build success already, but android cannot build for me, first time face this problem, before build fun

Recently, I add some codova plugin and third party login sdk in my project and now not working for me

zhungzhens-MacBook-Air:minan zhungzhenzhungzhen$ ionic cordova build android
Running app-scripts build: --build --iscordovaserve --externalIpRequired --nobrowser

[15:18:50]  build dev started ...
[15:18:50]  clean started ...
[15:18:50]  clean finished in 8 ms
[15:18:50]  copy started ...
[15:18:50]  transpile started ...
[15:18:55]  transpile finished in 5.83 s
[15:18:55]  preprocess started ...
[15:18:56]  deeplinks started ...
[15:18:56]  deeplinks finished in 105 ms
[15:18:56]  preprocess finished in 106 ms
[15:18:56]  webpack started ...
[15:18:56]  copy finished in 6.34 s
[15:19:10]  webpack finished in 14.86 s
[15:19:10]  sass started ...
[15:19:12]  sass finished in 1.75 s
[15:19:12]  postprocess started ...
[15:19:12]  postprocess finished in 8 ms
[15:19:12]  lint started ...
[15:19:12]  build dev finished in 22.64 s
> cordova build android
⠙ Running command [15:19:22]  lint finished in 10.16 s
✖ Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build android (exit code 1):

        (truncated) ... rscript UP-TO-DATE
        :CordovaLib:compileDebugRenderscript UP-TO-DATE
        :CordovaLib:generateDebugResValues UP-TO-DATE
        :CordovaLib:generateDebugResources UP-TO-DATE
        :CordovaLib:packageDebugResources UP-TO-DATE
        :CordovaLib:processDebugManifest UP-TO-DATE
        :CordovaLib:generateDebugBuildConfig UP-TO-DATE
        :CordovaLib:processDebugResources UP-TO-DATE
        :CordovaLib:generateDebugSources UP-TO-DATE
        :CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
        :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
        :CordovaLib:processDebugJavaRes UP-TO-DATE
        :CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
        :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
        :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
        :CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
        :CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
        :CordovaLib:bundleDebug UP-TO-DATE
        :CordovaLib:preReleaseBuild UP-TO-DATE
        :CordovaLib:checkReleaseManifest
        :CordovaLib:prepareReleaseDependencies
        :CordovaLib:compileReleaseAidl UP-TO-DATE
        :CordovaLib:compileReleaseNdk UP-TO-DATE
        :CordovaLib:copyReleaseLint UP-TO-DATE
        :CordovaLib:mergeReleaseShaders UP-TO-DATE
        :CordovaLib:compileReleaseShaders UP-TO-DATE
        :CordovaLib:generateReleaseAssets UP-TO-DATE
        :CordovaLib:mergeReleaseAssets UP-TO-DATE
        :CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
        :CordovaLib:packageReleaseRenderscript UP-TO-DATE
        :CordovaLib:compileReleaseRenderscript UP-TO-DATE
        :CordovaLib:generateReleaseResValues UP-TO-DATE
        :CordovaLib:generateReleaseResources UP-TO-DATE
        :CordovaLib:packageReleaseResources UP-TO-DATE
        :CordovaLib:processReleaseManifest UP-TO-DATE
        :CordovaLib:generateReleaseBuildConfig UP-TO-DATE
        :CordovaLib:processReleaseResources UP-TO-DATE
        :CordovaLib:generateReleaseSources UP-TO-DATE
        :CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
        :CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
        :CordovaLib:processReleaseJavaRes UP-TO-DATE
        :CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
        :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
        :CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
        :CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
        :CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
        :CordovaLib:bundleRelease UP-TO-DATE
        :prepareComAndroidSupportAnimatedVectorDrawable2531Library UP-TO-DATE
        :prepareComAndroidSupportAppcompatV72531Library UP-TO-DATE
        :prepareComAndroidSupportCardviewV72531Library UP-TO-DATE
        :prepareComAndroidSupportCustomtabs2531Library UP-TO-DATE
        :prepareComAndroidSupportSupportCompat2531Library UP-TO-DATE
        :prepareComAndroidSupportSupportCoreUi2531Library UP-TO-DATE
        :prepareComAndroidSupportSupportCoreUtils2531Library UP-TO-DATE
        :prepareComAndroidSupportSupportFragment2531Library UP-TO-DATE
        :prepareComAndroidSupportSupportMediaCompat2531Library UP-TO-DATE
        :prepareComAndroidSupportSupportV42531Library UP-TO-DATE
        :prepareComAndroidSupportSupportVectorDrawable2531Library UP-TO-DATE
        :prepareComCommit451PhotoView124Library UP-TO-DATE
        :prepareComFacebookAndroidFacebookAndroidSdk4260Library UP-TO-DATE
        :prepareOpenDefault206Library UP-TO-DATE
        :prepareOrgApacheCordovaCordovaLib623DebugLibrary
        :prepareDebugDependencies
        :compileDebugAidl
        :compileDebugRenderscript
        :generateDebugBuildConfig
        :generateDebugResValues
        :generateDebugResources
        :mergeDebugResources
        :processDebugManifest/Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml:54:9-242
        Error:
        Element activity#com.zhungzhen.minanapp.wxapi.WXEntryActivity at AndroidManifest.xml:54:9-242 duplicated with
        element declared at AndroidManifest.xml:21:9-27:20
        /Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml Error:
        Validation failed, exiting


        See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

        :processDebugManifest FAILED

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':processDebugManifest'.
        > Manifest merger failed with multiple errors, see logs

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        BUILD FAILED

        Total time: 11.711 secs
        Error: /Users/zhungzhenzhungzhen/desktop/minan/platforms/android/gradlew: Command failed with exit code 1 Error
        output:
        /Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml:54:9-242 Error:
        Element activity#com.zhungzhen.minanapp.wxapi.WXEntryActivity at AndroidManifest.xml:54:9-242 duplicated with
        element declared at AndroidManifest.xml:21:9-27:20
        /Users/zhungzhenzhungzhen/Desktop/minan/platforms/android/AndroidManifest.xml Error:
        Validation failed, exiting

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':processDebugManifest'.
        > Manifest merger failed with multiple errors, see logs

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

This is what I found from internet, is it plugin problem?

This is my plugin list

com-sarriaroman-photoviewer 1.1.10 "PhotoViewer"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-qqsdk 0.9.6 "QQSDK"
cordova-plugin-sharesdk 0.1.0 "ShareSDK"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-wechat 2.0.0 "Wechat"
cordova-plugin-weibosdk 0.6.0 "WeiboSDK"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-x-socialsharing 5.1.8 "SocialSharing"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"

UPDATE!!!

Finally I solved this problem and I wrote the way in the answer.

解决方案

Normally, this error is the cordova plugins problem.

For my project is the weibosdk plugin problem

I just remove my weibosdk plugin, and found a new latest plugin add in my project, then build success.

So when you meet this problem, type ionic cordova plugin list to list what you add in your project, then check your plugin which out of date or other problem.

If you have other advices, please comment in this post. Thanks!

这篇关于ionic2 - 任务“:processDebugManifest"执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 23:54