问题描述
错误:无法解析:com.twitter.sdk.android: twitter:2.3.0
当我尝试添加这种依赖关系:
compile'com.firebaseui:firebase-ui:1.1.1'
有人可以帮助我,我不知道我做错了什么。这是从哪里获得依赖关系的链接:。在旁注中,我没有在我的应用程序中使用twitter登录或与twitter进行的任何交互,所以我不知道为什么在放置依赖关系后同步我的毕业生时会收到错误。
你的项目的毕业文件应该是这样的。
buildscript {
repositories {
jcenter()
}
依赖关系{
classpath'com.android.tools.build:gradle:2.2.3'
classpath'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
//必需的'com.firebaseui:firebase-ui:1.1。 1'
maven {
url'https://maven.fabric.io/public'
}
}
}
I am getting this error in my log cat
Error:Failed to resolve: com.twitter.sdk.android:twitter:2.3.0
When I try adding this dependency:
compile 'com.firebaseui:firebase-ui:1.1.1'
Can someone please help me out, I am not sure what I am doing wrong. This is the link from where I got the dependency from: https://github.com/firebase/FirebaseUI-Android. On a side note, I am not using twitter login or any sort of interaction with twitter in my application, so I am not sure why I get that error when I sync my gradle after putting that dependency.
Your project's gradle file should look like this.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
// Required for 'com.firebaseui:firebase-ui:1.1.1'
maven {
url 'https://maven.fabric.io/public'
}
}
}
这篇关于错误:无法解析:com.twitter.sdk.android:twitter:2.3.0 - Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!