No service of type Factory available in ProjectScopeServices

你。 提交于 2019-11-27 17:33:28
Celal Selcan

Change maven gradle plugin version to 1.4.1 in project build.gradle file

dependencies {
    classpath 'com.android.tools.build:gradle:2.2.2'
    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}

Just add this line of code to your project level gradle

dependencies{
   classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
}

We should not use any static version for maven gradle plugin. Check your distributionUrl from gradle-wrapper.properties file inside Android studio root folder. Based on gradle version mentioned there you can find proper maven gradle plugin version from this link

just update that version that may solve your problem.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!