AndroidStudio出现Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.

在从github  clone 下项目来,导入工程跑不起来,报的如下错误:

Error:No service of type Factoryavailable in ProjectScopeServices.

是maven的版本出现了问题:

在工程的build.gradle  文件下将


buildscript{

repositories{  

     jcenter()    }

dependencies{

classpath'com.android.tools.build:gradle:2.1.3'

classpath'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'

classpath'com.github.dcendents:android-maven-gradle-plugin:1.3'

}

}

google后发现:

直接将' classpath com.github.dcendents:android-maven-gradle-plugin:1.3'更新到1.4.1就可以解决问题了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容