1、从3.4版本的gradle开始,compile已经被api与implementation取代
所以按照提示,将build.gradle
中的compile
替换成api
或implementation
testCompile
替换成testImplementation
androidTestCompile
替换成androidTestImplementation
2、Error:All flavors must now belong to a named flavor dimension
这个错误是说:必须要保证所有的flavor 都属于同一个维度
解决办法:
在build.gradle中增加以下代码
flavorDimensions "default"
完整代码如下
flavorDimensions "de