Reputation: 232
I have added aar library to MavenCentral by going through this toturial
When I add my library in project it gives me this error: Module version MY_LIBRARY depends on libraries but is not a library itself
You can find my build gradle file here
I have a uploadArchives task in my build.gradle. Does anyone know why I get this error and how to fix it?
EDIT:
I figured out where was the problem. I had to add @aar in my build gradle file and now it's working. Example: compile 'com.viewpagerindicator:library:2.4.1@aar'
Upvotes: 3
Views: 584
Reputation: 232
I figured out where was the problem. I had to add @aar in my build gradle file and now it's working. Example: compile 'com.viewpagerindicator:library:2.4.1@aar'
Upvotes: 1
Reputation: 1093
I already have this kind of problem with a cyclic dependency, so maybe you can check that.
I also found this, which is similar to your problem : Android Gradle library dependency with library dependency using Nexus
It seems that was an early release bug, so maybe you can try a more recent version of graddle.
Upvotes: 2