Cannot resolve symbol AndroidJUnit4

前端 未结 8 1359
太阳男子
太阳男子 2021-01-18 02:24

I\'m trying to add loginfacebook for my app. But when I added a repository that is need in doing this. It caused an error. The AndroidJUnit4 cannot resolve now.

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 03:05

    Try

    androidTestImplementation 'com.android.support:support-annotations:23.1.0'
    androidTestImplementation 'com.android.support.test:runner:0.4.1'
    androidTestImplementation 'com.android.support.test:rules:0.4.1'
    

    Add following above dependencies section

    configurations.all {
       resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'
    }
    

提交回复
热议问题