I want to use an external folder as a library. That folder(mvnLib) has maven-metadata-local.xml
and a .pom
and a .aar
files in it and documentation says I can use it like this:
allprojects {
repositories {
maven {
url "../mvnLib"
}
}
}
But id doesnt work and I get this error:
Could not find method implementation() for arguments [com.app.two:plib:1.3.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I cant find this type of Maven
repository documentation. Can I use a Maven
repository on disk? Is this correct? Why Im getting this error? Is there a automatic procedure to adding libraries like this to lower error rate?
Update:
mvnLib folder structure is:
[Project Root]
.gradle
app
mvnLib
com
app
two
plib
1.3.2
prlib-1.3.2.pom
prlib-1.3.2.aar
maven-metadata-local.xml
Documentation says put the mvnLib in the root of project. then on the project level build.gradle:
allprojects {
repositories {
maven {
url "../mvnLib"
}
}
}
Then on the app level build.gradle:
implementation 'com.app.two:plib:1.3.2'
I do all of these but i get that error.