Could not find commons-codec.jar in Android Studio 3.0

I installed Android Studio 3.0 , as soon as I open an application that works fine on Android Studio 2.3.3 , now when I try to create an application in Android Studio 3.0 it shows

Error: could not find commons-codec.jar (commons-codec: commons-codec: 1.6). Search in the following places: file: / Applications / Android Studio.app/Contents/ gradle / m2repository / commons-codec / commons-codec / 1.6 / commons-codec-1.6.jar

Help solve this problem.

+5
source share
2 answers

The 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 \ Common Codec \ Common Codec \ 1.6 \ Common Codec-1.6.jar

DONE

+8
source

You seem to have missed adding maven repo to the 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 information on updating gradle, follow the Migration to gradle Plugin 3

+1
source

Source: https://habr.com/ru/post/1272901/


All Articles