The full error message is
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
This error occurs when I tried implementing the searchablespinner view in the XML file. Is the above dependency corrupted or did I do something wrong?
build.gradle
dependencies {
implementation 'gr.escsoft.michaelprimez.searchablespinner:SearchableSpinner:1.0.9'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.github.chivorns:smartmaterialspinner:1.5.0'
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">
<gr.escsoft.michaelprimez.searchablespinner.SearchableSpinner
android:id="@+id/SearchableSpinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</androidx.appcompat.widget.LinearLayoutCompat>