Tuesday, March 21, 2023

Android : Could not find com.twitter.sdk.android:twitter-core:3.1.1

While integrate Twitter signup integration in android . I'm getting following error 


Execution failed for task ':app:mergeDebugNativeLibs'.

> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

   > Could not find com.twitter.sdk.android:twitter-core:3.1.1.

     Searched in the following locations:

       - https://dl.google.com/dl/android/maven2/com/twitter/sdk/android/twitter-core/3.1.1/twitter-core-3.1.1.pom

       - https://repo.maven.apache.org/maven2/com/twitter/sdk/android/twitter-core/3.1.1/twitter-core-3.1.1.pom

     Required by:

         project : app


Error



Solution 


Add following line in setting.gradle file 

pluginManagement {
repositories {
maven {
url ("https://github.com/jitsi/jitsi-maven-repository/raw/master/releases")
}
maven{
url("https://jcenter.bintray.com")
}

maven { url 'https://jitpack.io' }

gradlePluginPortal()
google()
mavenCentral()

}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {

maven {
url ("https://github.com/jitsi/jitsi-maven-repository/raw/master/releases")
}
google()
mavenCentral()

maven{
url("https://jcenter.bintray.com")
}

maven { url 'https://jitpack.io' }
}
}












No comments:

Post a Comment

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...