android studio2.2.3导入3.0.0项目

把build.gradle里的google()修改成:
maven {
url ‘https://maven.google.com/
name ‘Google’
}
后面应该还有个报错:Error:Execution failed for task ‘:app:processMockDebugAndroidTestResources’.

java.io.FileNotFoundException: E:\Demo\android-architecture-todo-mvp\android-architecture-todo-mvp\todoapp\app\build\intermediates\symbols\androidTest\mock\debug\R.txt (系统找不到指定的文件。)

这个是要在androidTest里创建一个res/values/string.xml文件
在string.xml里创建 :
这里写图片描述
OK 完成

猜你喜欢

转载自blog.csdn.net/qq_35256586/article/details/82217645