Junit中aapt2编译错误&RuntimeError
使用android studio的单元测试时候,发现报AAPT2错误。
解决办法是在gradle.properties里面添加
android.enableAapt2=false
错误:
!!! JUnit version 3.8 or later expected: java.lang.RuntimeException: Stub!
参考:
1.https://stackoverflow.com/questions/2422378/intellij-idea-with-junit-4-7-junit-version-3-8-or-later-expected
2.使用Robolectric:http://robolectric.org/writing-a-test/
*参考方法并没有用。。。
相关推荐
shirleypaddy 2020-10-19
qingmumu 2020-10-19
lustdevil 2020-10-18
ganlulululu 2020-10-12
lustdevil 2020-08-03
lustdevil 2020-07-18
lustdevil 2020-06-25
lustdevil 2020-06-21
zhengzf0 2020-06-21
宿命java 2020-06-15
JackYin 2020-06-14
dongxurr 2020-06-07
snowphy 2020-06-06
zhengzf0 2020-05-28
81901836 2020-05-26
Julywhj 2020-05-26