Android studio 会自动在build.gradle生成android { sourceSets { main { java.srcDirs = [‘src/main/java’, ‘src/test/java/’] } } },把它去掉
参考 http://www.vogella.com/tutorials/AndroidTesting/article.html https://io2015codelabs.appspot.com/codelabs/android-studio-testing#5 http://www.jianshu.com/p/03118c11c199('简书'上针对上一链接的翻译) http://code.tutsplus.com/tutorials/android-sdk-unit-testing-with-the-junit-testing-framework--mobile-421 http://developer.android.com/tools/help/monkey.html http://developer.android.com/training/testing.html http://developer.android.com/tools/testing/testing_otheride.html#AMSyntax https://developer.android.com/training/testing/unit-testing/instrumented-unit-tests.html
<p>版权声明:本文为博主原创文章,未经博主允许不得转载。</p>