提示下列错误:
Android dependency 'com.android.support:appcompat-v7' has different version for the compile (27.1.0) and runtime (28.0.0) classpath. You should manually set the same version via DependencyResolution
因这个是android的基础包,所以经常会引起包版本的冲突,所以设置一下统一版本。
在android/build.gradle中的subprojects项中添加
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.0"
}
}
}
即可