Ich versuche, von Crashlytics 1.x auf Fabric in einer Android-App zu aktualisieren. Ich habe die build.gradle Datei geändert hier das Beispiel entsprechen - https://fabric.io/downloads/gradleKann keine Android-App mit Crashlytics erstellen
Aber auf Build ich - Fehler: Fehler zu beheben: com.crashlytics.sdk.android:crashlytics:2.5.5
Ich verwende Android Studio 1.5.1 und ich habe das Fabric-Plugin installiert. Was muss ich noch tun?
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://repository-nutiteq.forge.cloudbees.com/release/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.library'
apply plugin: 'io.fabric'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
dexOptions {
jumboMode = true
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.properties'
}
}
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://repository-nutiteq.forge.cloudbees.com/release/' }
}
dependencies {
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.squareup.okhttp3:okhttp:3.1.2'
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
// some removed
}
Bitte zeigen Sie auch Ihre Projektebene gradle Datei hinzufügen, nicht nur die eine in der 'app' Ordner – EpicPandaForce
Mike von Fabric hier, wenn Sie laufen: ./gradlew assemble --refresh-Abhängigkeiten hilft das? –