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.