为什么不为以下为Android应用Twitter的登录工作Fabric.IO步骤? [英] Why doesn't following the Fabric.IO steps for Twitter Login work for Android apps?

查看:713
本文介绍了为什么不为以下为Android应用Twitter的登录工作Fabric.IO步骤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当你去Fabric.io和登录您选择的Andr​​oid网站的项目类型将引导您下载该插件。

第一个(可怕的),要注意的是,该网页将永远不会让你过去,这可怕的图形这是毫无意义的。有没有办法永远得到第2步。这是因为第2步说,启动应用程序,但你不能,因为它不能建立,因为Fabric.io步骤似乎是不完整的。

下面是图形详细说明了Fabric.IO插件引导您完成不成功的每一步。

点击面料IO插件按钮


点击Twitter的选择

点击与Twitter登录 - 获得code

复制布局code

添加Java code为登录

最后一步 - 但它不工作 - 将不建!

检查第一图形再次

现在,看一下第一个图形一次。你无法启动应用程序,因为它不会建。

我找不到如何添加包含TwitterLoginButton库。
任何人有什么想法?
我花了几个小时就这一点,所以搜索,尝试各种东西。挺浪费时间的。

您知道吗,我用C#和的NuGet,它就可以工作。这不是一个很大的包系统。

摇篮文件

  buildscript {
        库{
            jcenter()
            行家{URLhttps://maven.fabric.io/public'}
        }
        依赖{
            类路径'com.android.tools.build:gradle:1.5.0
            //织物摇篮插件使用的开放式版本,反应
            //赶紧到Android工具更新
            类路径'io.fabric.tools:gradle:1.+
            classpath'com.twitter.sdk.android:Twitter的核心:1.3.1@aar        }
    }
buildscript {
    库{
        行家{URLhttps://maven.fabric.io/public'}
    }    依赖{
        类路径'io.fabric.tools:gradle:1.+
    }
}
应用插件:'com.android.application
应用插件:'io.fabric库{
    jcenter()
    行家{URLhttps://maven.fabric.io/public'}
}


解决方案

@daylight迈克Crashlytics和Fabric这里。首先,感谢您对布局和code反馈。其次,它看起来像SDK并没有之前通过code样品去安装。如果你点击这个截图顶部安装,即会得到你所需要的SDK和其它code。

在这里输入的形象描述

When you go to Fabric.io and login you choose a project type of android the site will guide you to download the plugin. The first (terrible) thing to notice is that the web page will never let you past this horrific graphic which is meaningless. There is no way to ever get to step 2. That's because Step 2 says, "Launch your app" but you cannot, because it cannot build because the Fabric.io steps seem to be incomplete.

Here are the graphics detailing each step that Fabric.IO plugin walks you through unsuccessfully.

Click fabric io plugin button click twitter choice click login with twitter - get code Copy Layout code add the java code for login Last step -- and yet it does not work -WILL NOT BUILD!!!

Examine First Graphic Again

Now, look at the first graphic again. You cannot Launch Your App because it will not build.

I cannot find out how to add the library which contains the TwitterLoginButton. Anyone have any ideas? I've spent hours on this, searching SO, trying various things. Quite a waste of time.

You know, I use C# and Nuget and it just works. This is not a great package system.

Gradle file

    buildscript {
        repositories {
            jcenter()
            maven { url 'https://maven.fabric.io/public' }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:1.5.0'
            // The Fabric Gradle plugin uses an open ended version to react
            // quickly to Android tooling updates
            classpath 'io.fabric.tools:gradle:1.+'
            classpath'com.twitter.sdk.android:twitter-core:1.3.1@aar'

        }
    }
buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

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

解决方案

@daylight Mike from Crashlytics and Fabric here. First off, thanks for the feedback on the layout and code. Second, it looks like the SDK wasn't installed before going through the code samples. If you click "Install" in this screenshot at the top, that will get you the SDK and other code needed.

这篇关于为什么不为以下为Android应用Twitter的登录工作Fabric.IO步骤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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