I / CrashlyticsCore:Crashlytics报告上传已完成,但未显示在仪表板中

时间:2018-06-27 13:10:42

标签: android crashlytics google-fabric

我对面料有疑问。它是一个测试项目,用于发现问题并在结构文档中逐步进行所有操作,但是我不知道这是什么错误。请帮助我。

我的摇篮:

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 27
    defaultConfig {
        applicationId "com.mycompany.testtt"
        minSdkVersion 17
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    compile('com.crashlytics.sdk.android:crashlytics:2.9.4@aar') {
        transitive = true;
    }
}

我的清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mycompany.testtt">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>


        <meta-data
            android:name="io.fabric.ApiKey"
            android:value="9fd0b323bad2f5dae063288c94fd3a2317faa104"
            />
    </application>

    <uses-permission android:name="android.permission.INTERNET" />
</manifest>

主要活动:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Fabric.with(this, new Crashlytics());
    // TODO: Move this to where you establish a user session
    logUser();

    setContentView(R.layout.activity_main);
}
private void logUser() {
    // TODO: Use the current user's information
    // You can call any combination of these three methods
    Crashlytics.setUserIdentifier("12345");
    Crashlytics.setUserEmail("user@fabric.io");
    Crashlytics.setUserName("Test User");
}

public void forceCrash(View view) {
    throw new RuntimeException("This is a crash");
}

毕竟还有错误和测试,但仪表板上仍然没有显示任何内容。 我会从结构文档中逐步进行所有操作。 我有几天这个问题了,无论如何我已经测试过了,但是我仍然没有得到结果,并且在Fabric仪表盘中什么也不显示。 ApiKey是正确的,我确定

(对不起,英语)

0 个答案:

没有答案