Cannot resolve symbol 'AndroidJUnit4'

前端 未结 19 2266
别跟我提以往
别跟我提以往 2020-12-02 08:48

Obviously I need the correct import statment to solve this problem. According to the docs for AndroidJUnit4, this should be

import android.support.test.runn         


        
19条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 09:37

    Add this dependency in your build.gradle file:

    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    

    Update the end version (1.1.1) with the latest version released.

提交回复
热议问题