最近在升级AndroidStudio运行项目时候报的几个错:
1、关于All flavors must now belong to named flavor dimension报错.
解决方法:在app的build.gradle下defaultConfig里加
flavorDimensions "versionCode"
image.png
2、关于Unable to resolve dependencies for‘xxxxxx’:Could not resolve project:loginlib报错
image.png
解决方法:在每个子模块build.gradle下buildTypes里加productFlavors{}
3、关于No matching client found for package name ‘com.llloyds.bbcam’错误
image.png
解决方法:在app的build.gradle开头将插件apply plugin: 'com.google.gms.google-services'
注释掉
4、关于not found for signing config 'GoolePlay_Signing_config' 报错
image.png
解决方法:在gradle_properties里将目录换成你自己项目路径
image.png
网友评论