I am getting error while trying to implement a routing system into my map.
Here is the error : Failed to resolve: com.github.MKergall:osmbonuspack:6.7.0 Affected Modules: app
I have the following dependencies : implementation 'com.github.MKergall:osmbonuspack:6.7.0'. Tried the local one as well : ``` compile(name: 'osmbonuspack_v6.7.0', ext: 'aar') implementation 'org.osmdroid:osmdroid-android:6.1.10' implementation 'org.apache.commons:commons-lang3:3.12.0' implementation 'com.google.code.gson:gson:2.8.7' implementation 'com.squareup.okhttp3:okhttp:4.9.1'
I have this in my repositories :
repositories { google() jcenter() maven { url "https://jitpack.io" }
How can I get this to work?
I had exactly these troubles and attempted to solve them using the newly refreshed and updated help wiki on https://github.com/MKergall/osmbonuspack/wiki/HowToInclude
What it doesn't tell you, possibly related to the newness of Android Studio Arctic Fox is https://stackoverflow.com/a/68012797
ie it is
settings.gradleinto which we must add our link to jitpack. This is contrary to advice to use project (root) levelbuild.gradle, even the advice to add it underallprojectsinstead ofbuildscripts:That caused:
Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle'What eventually worked was:
in
settings.gradle. Thanks to https://stackoverflow.com/a/68012797 for that. Most of it was already coded, I simply addedmaven { url "https://jitpack.io" }