且构网

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

如何调试或解决“错误:当前项目无法运行".适用于Android Instrumented测试的运行配置?

更新时间:2023-01-02 20:37:34

尝试从Android Studio中的命令行运行检测的测试. 命令为./gradlew connectedAndroidTest.这应该可以告诉您发生了什么.

Try running the Instrumented tests from the command line in Android Studio. The command is ./gradlew connectedAndroidTest . This should give you an indication of what's going on.

此外,请确保您正在运行模拟器或插入了设备.

Also, make sure that you have an emulator running or a device plugged in.