Android Studio 2.1: error: package org.junit does not exist

前端 未结 7 1611
别那么骄傲
别那么骄傲 2020-12-29 23:58

Update: Its a bug and it\'s been reported, please star: https://code.google.com/p/android/issues/detail?id=209832&thanks=209832&ts=1463161330

<
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 00:30

    Some things you should check -

    • Do you have unit test and debug selected under build variants?
    • Is your working directory set to $MODULE_DIR$ in Run/Debug configurations for the unit test?
    • Did you create the test by selecting the class you wish to test, going to Navigate -> Test and having Android Studio construct the test class for you?

提交回复
热议问题