No service of type Factory available in ProjectScopeServices.

最近从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
    }
我目前的版本是1.3,将它改成1.4.1就可以了,如果还是不行那就在改下版本试一试

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
    }
发布了25 篇原创文章 · 获赞 46 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_20328181/article/details/79257241