groovy dependencies { testImplementation 'org.robolectric:robolectric:4.5.1' } @RunWith(RobolectricTestRunner.class) public class MyActivityTest { @Test public void testSomething() { } } <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.app"> <application android:label="MyApp"> </application> </manifest>


上一篇:
下一篇:
切换中文