Closed laomo closed 9 years ago
In my case, many repositories(JCenter, Central and https://jitpack.io/) in my project. so I need write like this:
dependencies {
compile 'com.github.hotchemi:permissionsdispatcher:1.2.1@aar'
apt 'com.github.hotchemi:permissionsdispatcher-processor:1.2.1'
}
I'm still facing the same error. Adding @aar doesn't help either. Somebody help please!
same issue here, any solution? Really can't find out what does it mean!
@apperside Have you tried https://github.com/hotchemi/PermissionsDispatcher#download ?
tried what exactly? I followed all the steps indicated but when I sync the project with gradle I receive the error message
Error:Module 'com.github.hotchemi:permissionsdispatcher:2.1.2' depends on one or more Android Libraries but is a jar
I modified the project build.gradle adding
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
to the dipendences
and modified the app build.gradle adding the plugin and the dependencies
Encountered same issue
So, have you guys add following code?
project build.gradle
buildscript {
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
app build.gradle
apply plugin: 'android-apt'
dependencies {
compile 'com.github.hotchemi:permissionsdispatcher:2.1.3'
apt 'com.github.hotchemi:permissionsdispatcher-processor:2.1.3'
}
What is the version of gradlew, Android Studio and android gradle plugin? Could you paste all build.gradle?
Why was this closed? I'm still seeing the issue. My gradle files look just like what shiraji has posted above, except I also have multiple repos like laomo
Edit: Ok managed to solve it, by appending @aar at the end AND reordering my repos as recommended in the link to the following:
maven { url "http://dl.bintray.com/populov/maven" } mavenCentral() jcenter() maven { url "https://jitpack.io" }
jitpack had to be last for this to work, and bintray had to be first for viewpagerindicator.
Yup it's the general problem of Gradle.
Encountered same issue how to fix?
This link solved my problem. https://libraries.io/github/magiepooh/RecyclerViewPager
Warning:Module 'com.github.hotchemi:permissionsdispatcher:1.2.1' depends on one or more Android Libraries but is a jar