2016-07-05 3 views
28

Ich benutze Android Studio und das Fabric-Plugin. Ich konnte Fabric bereits einen Absturz melden.Android konnte diese App im PackageManager nicht finden io.crash.air

Meine App Gradle bauen Skript:

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 { 
    maven { url 'https://maven.fabric.io/public' } 
} 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.3" 

    defaultConfig { 
     applicationId "com.xxx.yyy" 
     minSdkVersion 16 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 

     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0' 
    compile 'com.android.support:appcompat-v7:23.1.1' 
    compile 'com.android.support:design:23.1.1' 
    compile 'com.android.support:support-v4:23.1.1' 
    compile 'com.android.support:recyclerview-v7:23.1.1' 
    compile 'com.loopj.android:android-async-http:1.4.9' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    androidTestCompile('com.android.support.test:runner:0.5') { 
    } 
    androidTestCompile 'com.android.support.test:rules:0.5' 
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2' 
    androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2') { 

    } 
    compile 'com.squareup.retrofit2:retrofit:2.1.0' 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
     transitive = true; 
    } 
} 
+3

Ich bekomme auch den gleichen Fehler .. haben Sie irgendeine Lösung bekommen? – Pallavi

+0

@Pallavi noch nicht, ich werde eine Antwort selbst posten, sobald ich eine Lösung finden – ericn

+1

Dieses Problem ist nicht Fabric verwandt. Es gibt etwas in Ihrer App, das die Ausnahme bildet. Ich hatte das gleiche Problem. – Alireza

Antwort

36

Dieses Problem wird in 2.6.1 Version gelöst. Rüsten Sie Ihre crashlytics Version von 2.6.0 bis 2.6.1

compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
    transitive = true; 
} 
+0

Perfekte Antwort für die Zeit, bis Fabric es aussortieren. – Harpreet

+1

Mike von Fabric hier - verursacht dies einen Fehler oder eine Warnung? –

+1

Fehler @MikeBonnell – Niranjan

8

Sauber, neu erstellen nicht für mich arbeiten, ich ging zurück zu 2.5.7, so einstweilen jetzt mein App build.gradle ist wieder (und keine weitere Ausnahme):

compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
    transitive = true; 
} 
Verwandte Themen