Home > Mobile >  Android studio gradle
Android studio gradle

Time:10-05

Ask a question, I in the latest edition of the as (Android studio 3.5) imported the app that USES eclipse development project before, now try to sync project with gradle files, but always tip: ERROR: Could not find com. Android. View the build: gradle: 5.6.1., but in fact I have seen in the C: \ Users \ \ Administrator \. Gradle \ wrapper \ dists \ gradle 5.6.1 - all automatically download \ 805 usxkvhgx6e1wbo8o64g0tx catalog 5.6.1 installations, excuse me this ERROR
how to solve?
My build. Gradle file configuration is as follows:
//Top - level build file where you can add the configuration options common to all sub - projects/modules.
Buildscript {
Repositories {
Jcenter ()
}
Dependencies {
The classpath 'com. Android. Tools. Build: gradle: 5.6.1'
}
}

Allprojects {
Repositories {
Jcenter ()
}
}

CodePudding user response:

You can try to create a new project, then the inside of the reference gradle configuration changes to the current projects,
Mainly include the build gradle - project layer, top,,, build. Gradle - app layer, application layer,

You there is the top-level configuration is the classpath is not gradle version
By the way,, less a Google () library,,,

CodePudding user response:

The classpath 'com. Android. Tools. Build: gradle: 5.6.1' is this plugin configuration, to 3.5.0 (and) as versions,
  • Related