且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android Studio集成测试无法解析符号AndroidJUnit4

更新时间:2023-11-19 23:23:04

通过将测试添加到

  • /app/src/androidTest目录而不是
  • /app/src/test目录,仅用于单元测试

或者,当您创建测试类时,通过在项目"树的"Android Instrumentation测试"标签中选择新的类来添加测试

Or, when you create the test class, add the test by selecting new class when in "Android Instrumentation Tests" tab of the Project tree