To fix this error, from the Android Studio menu, select the option File->Sync Project with Gradle Files The error would go.
Android Studio 4.2 displays below message.Please remove usages of jcenter() Maven repository from your build scripts and migrate your build to other Maven repositories. This repository is deprecated and it will be shut down in the future. To fix it, open the gradle file at the project level, search and and replace jcenter() with mavenCentral(). … Continue reading How to fix message in Android Studio 4.2 to remove jcenter() and migrate to mavenCentral()
If you notice error that the Gradle home path is incorrect, when building your Android Project in Android Studio, select and set the gradle path to correct one. To do so, select File -> Settings. Click on Build, Execution, Deployment -> Build Tools -> Gradle.
After I updated Android Studio from 1.4 to 1.5, all went well and the patch got applied. However, when starting the project, I got an error that read something like this. Error Junit:Junit:4.12 not found or missing This error occurred due to gradle not getting updated / synced properly. Apparently, to speed up Android Studio, … Continue reading Error Junit:Junit:4.12 not found or missing after Android Studio 1.4 to 1.5 update