Closed neooleg closed 6 years ago
After a lot of investigation found the reason -- it's JitPack.
However, there is note in docs and I did read it before start using, but it's totally unclear.
If you include Jitpack.io dependencies in your project, it is important to review the order of the repositories available to your app module
Because of the library's artifact ID, Jitpack might be tempted to resolve the dependency on its own, which could lead to an error during Gradle's configuration time
Can you add more info, e.g.:
Try to change repositories in gradle file
replace this line
maven { url 'https://jitpack.io' }
on this line
maven { url 'https://maven.google.com/'}
https://github.com/permissions-dispatcher/PermissionsDispatcher/issues/535#issuecomment-432031677 would resolve the problem I suppose!
@garastard thanks a lot for your advice, however, it doesn't work in this way.
In bottom line how it was fixed.
allprojects {
repositories {
maven { url "https://jitpack.io" }
maven { url 'https://maven.google.com' }
mavenCentral()
jcenter()
google()
}
}
allprojects {
repositories {
maven { url 'https://maven.google.com' }
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
google()
}
}
Do you know how to fix it in proper way?
Thanks for the feedback, @hotchemi !
Although, it would be great to understand how to replace jitpack with https://maven.google.com/
sorry I don't undersand..is it related to this lib?
I meant if there is fix to allow PermissionsDispatcher 4.0.0 works without jitpack -- it will be great.
PD doesn't rely on jitpack at all?🤔
No, but jitpack affects it somehow, right?
That's why the issue appeared.
On Tue, Oct 23, 2018 at 5:47 PM Shintaro Katafuchi notifications@github.com wrote:
PD doesn't rely on jitpack at all?🤔
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/permissions-dispatcher/PermissionsDispatcher/issues/535#issuecomment-432275930, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkhyckLEbKf9I_KQK_7YNzd0OUR7Lshks5unyv6gaJpZM4Xzzes .
-- Best regards, Oleg
Sorry I don't understand..what you should do is to declare jcenter before jitpack and that's like general problem among jitpack and gradle. If you want to know more detail go to stackoverflow and google.
OK, sure. I just didn't understand the advice from @garastard, hence, clarified.
Sorry for that... Once again -- thanks for help.
👍👍👍
Getting same issue, when running job on jenkins machine. Jenkins machine is configured to run on sdk alone. Does this have to do something with the issue?
@26shruti check https://github.com/permissions-dispatcher/PermissionsDispatcher/issues/535#issuecomment-432465783 and from 4.2.0 we changed groupId so this kind of problem never happens.
@hotchemi tried that. It didn't help. Instead solved the issue adding annotationProcessor 'com.github.hotchemi:permissionsdispatcher:4.0.0' along with annotationProcessor 'com.github.hotchemi:permissionsdispatcher-processor:4.0.0'
@26shruti supposedly your workaround doesn't work since it means you don't add library module to your app binary. And we recommend to go to stackoverflow if you're stuck.
Overview
includeCompileClasspath = true
from #402 does NOT help -- it rises "Program type already present: android.support.v4.app.INotificationSideChannel" build errorExpected
Actual
Environment
library version: 4.0.0 gradle plugin: 3.1.4 (4.4) Android Studio: 3.1.4 Compile SDK: 28 TargetSDK: 26
Reproducible steps