Ionic 运行报错No resource identifier found for attribute 'appComponentFactory' in package 'android'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_38543537/article/details/87513925

今天用Ionic命令打包项目时候出现报错

打包命令:ionic cordova build android --prod --release

打包报错:No resource identifier found for attribute 'appComponentFactory' in package 'android'

解决方法: 
在项目级别的build.gradle(./platforms/android/build.gradle) 的allprojects节点下面加上以下代码

configurations.all {
    resolutionStrategy.force 'com.android.support:support-v4:24.0.0'
}

猜你喜欢

转载自blog.csdn.net/qq_38543537/article/details/87513925