首页 > 解决方案 > 尝试构建 Android-SimpleLocation 时出现错误“无法确定构造函数参数 #1:缺少 Factory 类型的参数...”

问题描述

尝试构建Android-SimpleLocation时,出现以下错误:

Unable to determine constructor argument #1: missing parameter of type Factory, or no service of type Factory<LoggingManagerInternal>.
Open File (which is a link to my build.gradle file)

有任何想法吗?

标签: javaandroidgradleandroid-gradle-pluginbuild.gradle

解决方案


您正在使用以下依赖项,

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

使用以下或更高版本更新这些。

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

推荐阅读