I've installed Android Studio 3.0, once I open an app which ran perfectly on Android Studio 2.3.3, now when when I try building the app in Android Studio 3.0 it shows,
Error:Could not find commons-codec.jar (commons-codec:commons-codec:1.6). Searched in the following locations: file:/Applications/Android Studio.app/Contents/gradle/m2repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
Help me resolve this issue.
Solution is simple. Just follow these steps
1. Download commons-codec-1.6.jar file from here
2. Place this file in the following location
C:\Program Files\Android\Android Studio\gradle\m2repository\commons-codec\commons-codec\1.6\commons-codec-1.6.jar
DONE
It seems you missed adding maven repo to your build.gradle file.
buildscript {
repositories {
...
// You need to add the following repository to download the
// new plugin.
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
For more info on updating gradle follow Migrating to Gradle Plugin 3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With