最近从GitHub上down下来一个项目,却在导入到AS的时候一直报Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.这个错误
clean一下项目之后,报出了详细错误信息
接下来仔细看异常信息,Could not create plugin of type 'AndroidMavenPlugin'.这个意思是说meaven原因,修改也比较简单,找到项目底下的build.gradel文件,修改它的版本就可以了
-
dependencies {
-
classpath 'com.android.tools.build:gradle:2.2.0'
-
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
-
-
// NOTE: Do not place your application dependencies here; they belong
-
// in the individual module build.gradle files
-
}
-
dependencies {
-
classpath 'com.android.tools.build:gradle:2.2.0'
-
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
-
-
// NOTE: Do not place your application dependencies here; they belong
-
// in the individual module build.gradle files
-
}