Good day. In connection with the latest studio updates, you also need to update Gradle. If the studio was updated without problems, then a lot of errors appeared with gradle. At the moment, the latest version is gradle 2.13. I tried a lot of ways, but nothing happens. In the body of the project there is a folder with the old version of Gradle, how to install a new one there? I spent the whole day, but could not figure it out ..
I tried:
1) in the build.gradle file, set the classpath 'com.android.tools.build:gradle:2.13' dependency
2) in the project file grandle-wrapper.properties indicated the new version distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-all.zip
3) in the project settings grandle set as
Use default grandle wrapper
so and
use local distribution
The following error always appears:
Error: Could not find com.android.tools.build:gradle:2.13. Searched in the following locations: file: / C: / Program Files / Android / android-studio v3 / gradle / m2repository / com / android / tools / build / gradle / 2.13 / gradle-2.13.pom file: / C: / Program Files / Android / android-studio v3 / gradle / m2repository / com / android / tools / build / gradle / 2.13 / gradle-2.13.jar https://jcenter.bintray.com/com/android/tools/build/gradle/ 2.13 / gradle-2.13.pom https://jcenter.bintray.com/com/android/tools/build/gradle/2.13/gradle-2.13.jar Required by:: myApp: unspecified
When trying to create a new project, writes:
Error: C: \ Users \ Admin.gradle \ caches \ 2.10 \ scripts \ asLocalRepo178_8nj2dccu0ba24ni5nnk1s7bux \ cp_init \ cache.properties (Can not find the specified file)
Those. the studio is looking for an old grandle, and how can I transfer it to a new one?