[英]Android Twitter Fabric SDK conflict with support library
I have a problem with Twitter Fabric SDK. 我有Twitter Fabric SDK的问题。 When I integrate the sdk and try to build, I get this error; 当我集成sdk并尝试构建时,我得到了这个错误;
Error:Failed to find: com.android.support:support-v4:21.0.0 错误:无法找到:com.android.support:support-v4:21.0.0
And this is my gradle.build file 这是我的gradle.build文件
buildscript {
repositories {
maven { url 'https://maven.fabric.io/repo' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.fabric.io/repo' }
}
apply plugin: 'io.fabric'
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.eventz.android"
minSdkVersion 14
targetSdkVersion 19
versionCode 13
versionName '1.1.2'
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
dependency.
compile 'com.android.support:support-v4:21.+'
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.google.android.gms:play-services:5.0.+'
compile project(':facebook')
compile fileTree(dir:'libs', include:['*.jar'])
compile files('libs/volley.jar')
compile files('libs/Parse-1.5.1.jar')
compile('com.twitter.sdk.android:twitter:1.0.1@aar') {
transitive = true;
}
}
I also tried to remove that support library but the I get this error; 我也试图删除该支持库,但我得到了这个错误;
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not resolve com.android.support:support-v4:21.0.0.
Required by:
Eventz:app:unspecified > com.android.support:appcompat-v7:20.0.0
> Could not GET 'https://maven.fabric.io/repo/com/android/support/support-v4/21.0.0/support-v4-21.0.0.pom'. Received status code 401 from server: Unauthorized
> Could not resolve com.android.support:support-v4:21.0.0.
Required by:
Eventz:app:unspecified > com.google.android.gms:play-services:5.0.89
> Could not GET 'https://maven.fabric.io/repo/com/android/support/support-v4/21.0.0/support-v4-21.0.0.pom'. Received status code 401 from server: Unauthorized
> Could not resolve com.android.support:support-v4:21.0.0.
Required by:
Eventz:app:unspecified > Eventz:facebook:unspecified
> Could not GET 'https://maven.fabric.io/repo/com/android/support/support-v4/21.0.0/support-v4-21.0.0.pom'. Received status code 401 from server: Unauthorized
> Could not resolve com.android.support:support-v4:21.0.0.
Required by:
Eventz:app:unspecified > com.twitter.sdk.android:twitter:1.0.1 > com.twitter.sdk.android:tweet-ui:1.0.1
> Could not GET 'https://maven.fabric.io/repo/com/android/support/support-v4/21.0.0/support-v4-21.0.0.pom'. Received status code 401 from server: Unauthorized
Hemal from Fabric here, I'd love to help with this. 来自Fabric的Hemal,我很乐意为此提供帮助。 We require the support library for Android L as part of the Twitter kit but it should be easy for you to grab- go to the Android SDK manager, and then select the support library and the support repository for v20 here to install: 我们需要Android L的支持库作为Twitter工具包的一部分,但是您应该很容易获得Android SDK管理器,然后选择支持库和v20的支持存储库来安装:
Once that's installed, you can re-build and you should be good to go! 一旦安装完毕,你可以重新构建,你应该好好去! Let me know how it goes. 让我知道事情的后续。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.