I’m attempting to apply the android-maven-gradle-plugin and it seems pretty straightforward.
I’m following the directions specified in the link above, namely:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.dcendents:android-maven-gradle-plugin:1.3"
}
}
apply plugin: "com.github.dcendents.android-maven"
However, this is the error I get when I refresh Gradle dependencies:
FAILURE: Build failed with an exception.
* Where:
Build file '...\build.gradle' line: 67
* What went wrong:
A problem occurred evaluating root project 'Repository'.
> org.gradle.api.internal.project.ProjectInternal.getPluginManager()Lorg/gradle/api/internal/plugins/PluginManagerInternal;
Line 67 being the “apply plugin” line.
I believe that it does “find” the plugin because when I don’t provide the correct repository I instead get a different “cannot find plugin com.github.etc” error.
Any ideas what’s causing this? Would appreciate any help!