简体   繁体   English

为什么不遵循针对Android应用程序的Twitter登录工作的Fabric.IO步骤?

[英]Why doesn't following the Fabric.IO steps for Twitter Login work for Android apps?

When you go to Fabric.io and login you choose a project type of android the site will guide you to download the plugin. 当你去Fabric.io并登录时,你选择了一个项目类型的android,该网站将指导你下载该插件。 Fabric.io仅限第一步 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. 没有办法进入第2步。这是因为第2步说,“启动你的应用程序”,但你不能,因为它无法构建,因为Fabric.io步骤似乎不完整。

Here are the graphics detailing each step that Fabric.IO plugin walks you through unsuccessfully. 下面是详细介绍Fabric.IO插件引导您完成失败的每一步的图形。

Click fabric io plugin button 单击fabric io插件按钮 click fabric io插件按钮(AndroidStudio 1.5) 单击开始按钮 click twitter choice 点击推特选择 点击面料推特选择 click login with twitter - get code 点击登录与Twitter - 获取代码 点击登录与Twitter  - 获取代码 Copy Layout code 复制布局代码 复制布局代码 add the java code for login 添加用于登录的java代码 复制java代码以添加登录代码 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. 我无法找到如何添加包含TwitterLoginButton的库。 Anyone have any ideas? 有人有想法么? I've spent hours on this, searching SO, trying various things. 我花了好几个小时,搜索SO,尝试各种各样的事情。 Quite a waste of time. 相当浪费时间。

You know, I use C# and Nuget and it just works. 你知道,我使用C#和Nuget,它只是起作用。 This is not a great package system. 这不是一个很好的包装系统。

Gradle file Gradle文件

    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. 来自Crashlytics和Fabric的@daylight Mike来自这里。 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. 其次,在查看代码示例之前,看起来没有安装SDK。 If you click "Install" in this screenshot at the top, that will get you the SDK and other code needed. 如果您点击顶部此屏幕截图中的“安装”,则会获得所需的SDK和其他代码。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM