Android Studio出现could not create plugin of type 'androidmavenplugin'.或者Error:No service of type Factory available in ProjectScopeServices.的解决方法

从github上clone了一个项目,却出现了No service of type Factory available in ProjectScopeServices.的提示,百思不得其解之时,只能去google。


bug



网上很多人都出现过这样的问题,说让clean一下项目,小白的我照做了,嗯,真不错终于可以看到详细信息了。

meaven出错


接下来就继续搜错,could not create plugin of type 'androidmavenplugin'.的因为,说是meaven的原因,修改起来也特别简单,Project下的build.gradel,修改版本就好了。



project下的build

将1.3的版本修改为1.4.1即可,然后点击 Try Again,就搞定了。

dependencies{

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

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

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

// NOTE: Do not place your application dependencies here; they belong

// in the individual module build.gradle files

}


搞定!



本人菜鸟一名,只会用最简单的方法解决问题,大神看到这儿就绕道吧。如果您和我一样也是一名小菜鸟,欢迎进群366213170,一起交流,我们需要你。

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

推荐阅读更多精彩内容