无法解决:com.twitter.sdk.android:tweet-composer [英] Failed to resolve: com.twitter.sdk.android:tweet-composer

查看:130
本文介绍了无法解决:com.twitter.sdk.android:tweet-composer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

compile('com.twitter.sdk.android:tweet-composer:0.8.0@aar')
        {
            transitive = true;
        }

我从 https://dev.twitter.com/twitter-kit/android/compose

但是当同步Android Studio项目时,出现以下错误..

But when Sync the Android Studio project following error is coming ..

错误:(53,13)**无法解决:** com.twitter.sdk.android:tweet-composer:0.8.0**** 在文件中显示
在项目结构中显示对话框

Error:(53, 13) **Failed to resolve: **com.twitter.sdk.android:tweet-composer:0.8.0**** Show in File
Show in Project Structure dialog

推荐答案

如Twitter所述,您必须更改模块build.gradle中的某些部分.

As was described on twitter, you have to change some parts in your module build.gradle.

在您的模块中,您可以使用:

In your module you can use:

buildscript {
  repositories {
    jcenter()
    maven { url 'https://maven.fabric.io/public' }
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:1.2.3'

    // The Fabric Gradle plugin uses an open ended version to
    // react quickly to Android tooling updates
    classpath 'io.fabric.tools:gradle:1.+'
  }
}

apply plugin: 'com.android.application'

//Put Fabric plugin after Android plugin
apply plugin: 'io.fabric'

repositories {
    jcenter()
    maven { url 'https://maven.fabric.io/public' }
}

我建议您安装Android Studio 插件.

I suggest you installing the Android Studio plugin.

它可以帮助您配置gradle脚本.

It helps you to configure the gradle script.

这篇关于无法解决:com.twitter.sdk.android:tweet-composer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆