Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rafey022 opened this issue Sep 10, 2022 · 2 comments

Comments

@rafey022
Copy link

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
Copy link

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
Copy link

I have a solution on this request, just wanted to share it so its public knowledge.
#147 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants