Error in gradle -2.10-all.zip.lck (the system cannot find the specified path)

I recently updated my Android studio to the latest version 2.1.3, and also made another update that appeared only to get this error below for all my existing projects in my Android studio.

Error: C: \ Program Files \ Android \ Android Studio1 \ gradle \ gradle -2.2.1 \ wrapper \ dists \ gradle -2.10-all \ a4w5fzrkeut1ox71xslb49gst \ gradle -2.10-all. zip.lck (the system cannot find the path specified)

Please guys, I need your help. Thank.

+4
source share
3 answers

https://services.gradle.org/distributions gradle ( gradle -2.10-all.zip) "C:\Users\your_user_name \.gradle\wrapper\dists\gradle -2.10-all\a4w5fzrkeut1ox71xslb49gst\put_it_here" .

+7

: C:\Users\Aman.gradle\\3.3\-\build_9xilmbs31p63j7oau8p3qxxmv\d0u1sorhwxy5ca3j4lgnxtkce\cp_proj1efd45104ffa2d33563b85b9edda76e3\cache.properties( )

: gradle.wrapper.properties,

distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-all.zip

url gradle, , 2.10 2.11, . .

+1

:

1) Android.

2) build.gradle(Module: app) ( ).

3) copy the dependencies

example:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:cardview-v7:24.1.1'

    compile 'com.android.support:appcompat-v7:24.1.1'
    compile 'com.android.support:design:24.1.1'
}

4) Add them to your old project, which gives an error.

5) Also see

compileSdkVersion 24
buildToolsVersion "24.0.0"

They should correspond to what was ever written after the v7 support library (android_support_lib_version).

6) Finally, synchronize the project again.

0
source

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


All Articles