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

前端 未结 7 1574
别那么骄傲
别那么骄傲 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:55

    Try to change the Build Variant to debug.

    View -> Tool Windows -> Build Variants

    UPD: This actually may be the cause, when all gradle dependencies are met, but org.junit.Test still not found. At least it was a cause for me. It was not working in 'release' build type, but was working in 'debug'.

    0 讨论(0)
提交回复
热议问题