ionic 3 Build failed for task :processDebugManifest

百般思念 提交于 2019-12-04 14:50:23

Your Android build is attempting to support multiple versions, take note of this part: [com.android.support:appcompat-v7:25.3.1] - this is the older version that it is trying to support.

Put this at the end of your app module build.gradle(in your project folder):

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '25.3.1'
            }
        }
    }
}

Make sure to replace the details.useVersion with the older version number.

Worked for me:

cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=26.+

Font: https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview/issues/362#issuecomment-366457197

It's a good advice to do

ionic cordova platform rm android
ionic cordova platform add android@7.1.1

after every plugin installation or update.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!