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.
the solution that worked for me is changing the emulator (one that uses the api you are using)
To do that click on the symbol of the emulatr next to the Run button (ex : Pixel 2)
then go down to Open AVD Manager (add the api u need (ex API 29))
Thats all