为了使用一些新特性,更新了测试框架,然后华丽地报错了:
Error:Execution failed for task ':app:processUmengDebugDebugAndroidTestResources'.
> java.io.FileNotFoundException: E:\project\air.app\app\build\intermediates\symbols\androidTest\UmengDebug\debug\R.txt (系统找不到指定的文件。)
翻墙搜索解决方法,可以这样做:
1.在androidTest里面新建res/values目录
2.新建strings.xml,并在里面输入任意字符:
<resources>
<string name="cloudhuan">csdn</string>
</resources>
ok,成功解决!
备注:能够翻墙的可以看这里:
https://stackoverflow.com/questions/21693281/gradle-assemble-of-an-android-project-failed-cant-find-r-txt