Ionic运行cordova build android 时,又报神奇错误,No resource identifier found for attribute 'appComponentFactory' in package 'android'
在platform/android/build.gradle的allprojects节点下面加configurations.all的代码就解决了,烦人,查了下,网上好多人也是这么干的
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-v4:24.0.0'
}
}
如果maven网络受限,那buildscript 和allprojects都改一下,用国内的代理好了:
http://maven.aliyun.com/nexus/content/groups/public/