Reputation: 190
I am using repositories mavenCentral() because jcenter() is deprecated. I want to implement com.beloo.widget:ChipsLayoutManager:0.3.7. But this is uploaded on jcenter().
Any Solutions to use com.beloo.widget:ChipsLayoutManager:0.3.7 in mavenCentral()
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.firebase:firebase-auth:21.0.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.github.pchmn:MaterialChipsInput:1.0.8'
implementation 'com.beloo.widget:ChipsLayoutManager:0.3.7'
}
Error:
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.beloo.widget:ChipsLayoutManager:0.3.7. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/beloo/widget/ChipsLayoutManager/0.3.7/ChipsLayoutManager-0.3.7.pom - https://repo.maven.apache.org/maven2/com/beloo/widget/ChipsLayoutManager/0.3.7/ChipsLayoutManager-0.3.7.pom - https://jitpack.io/com/beloo/widget/ChipsLayoutManager/0.3.7/ChipsLayoutManager-0.3.7.pom Required by: project :app project :app > com.github.pchmn:MaterialChipsInput:1.0.8
Possible solution:
Upvotes: 0
Views: 1548
Reputation: 6571
It could be found at JitPack.io (You can try to search for any lib there.)
you should declare it as following:
implementation 'com.github.BelooS:ChipsLayoutManager:v0.3.7'
Upvotes: 1
Reputation: 93688
If its not uploaded to Maven Central, then you can't get it from Maven Central. These are file repositiories, they have to have the file to give it to you. Use jcenter, download the code of the library and build it a as a local library, or find another library with similar functionality.
Upvotes: 0