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.
import androidx.test.runner.AndroidJUnit4
instead of
import android.support.test.runner.AndroidJUnit4
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
instead of
Context appContext = InstrumentationRegistry.getTargetContext()
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'
}