miteshpithadiya / SearchableSpinner

Spinner with searchable items.
674 stars 241 forks source link

Failed to resolve: com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1 #136

Open rafey022 opened 2 years ago

rafey022 commented 2 years ago

here is my gradle

`apply plugin: 'com.android.application'

android { compileSdkVersion 33 defaultConfig { applicationId "com.example.thumbsol.accuratesurvey" minSdkVersion 19 targetSdkVersion 33 versionCode 3 versionName "3.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } buildTypes { release { minifyEnabled false debuggable false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }

dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', { exclude group: 'com.android.support', module: 'support-annotations' }) //noinspection GradleCompatible implementation 'com.android.support:appcompat-v7:28.0.0' //noinspection GradleCompatible implementation 'com.android.support:design:28.0.0' implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'com.android.support.constraint:constraint-layout:2.0.4' //noinspection GradleCompatible implementation 'com.android.support:cardview-v7:28.0.0' implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.facebook.network.connectionclass:connectionclass:1.0.1' implementation 'fr.bmartel:jspeedtest:1.32.1' testImplementation 'junit:junit:4.13.2' implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.10' implementation 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'

}`

DorianHawkmoon commented 1 year ago

This is how I solved this issue, being a newbie in Android. Seems like Gradle/Android has changed their way of dealing with repos, so in addition to the line implementation 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1' in app/build.gradle

I also added in settings.gradle the following line maven { url "https://jcenter.bintray.com/" }

the my settings.gradle looks like this

pluginManagement {
      repositories {
         google()
         mavenCentral()
         gradlePluginPortal()
      }
   }
   dependencyResolutionManagement {
      repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
         repositories {
            google()
            mavenCentral()
            maven { url "https://jcenter.bintray.com/" } 
         }
      }
rootProject.name = "AProject"
include ':app'
auridgway commented 3 weeks ago

I have a solution on this request, just wanted to share it so its public knowledge. https://github.com/miteshpithadiya/SearchableSpinner/issues/147#issuecomment-2304030504