0
我已經在Android應用程序集成了Firebase,遵循文檔中提到的所有步驟。 集成google-services.json文件並在項目和應用程序級別gradle中添加了必需的行。谷歌Firebase集成在Android應用程序
加分析庫:com.google.firebase:火力核心:9.2.1
的Android Studio版本:2.1.2
使用24 SDK編譯。
該應用程序構建時沒有錯誤並且在設備上運行,但Firebase Analytics儀表板爲空。
我越來越崩潰報告,但分析沒有在mainactivity顯示
還增加了火力實例。
請help..thanks
的build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion '24.0.0'
defaultConfig {
applicationId "com.example"
minSdkVersion 14
targetSdkVersion 19
versionCode 1068
versionName "1.0.6.8"
}
useLibrary 'org.apache.http.legacy'
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
productFlavors {
}
}
repositories {
maven {
url "https://mint.splunk.com/gradle/"
}
}
dependencies {
compile 'com.google.android.gms:play-services:9.2.1'
compile 'com.google.maps.android:android-maps-utils:0.3.+'
compile 'com.squareup:otto:1.3.6'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.google.firebase:firebase-core:9.2.0'
compile 'com.google.firebase:firebase-crash:9.2.1'
compile 'com.splunk.mint:mint:4.0.6'
compile 'com.android.support:appcompat-v7:24.0.0'
}
apply plugin: 'com.google.gms.google-services'
firebase ana lytic需要大約24小時才能看到結果 – has19
我已經在4天前完成了...顯示崩潰報告,但Google Analytics是空的。 – Navya
但它應該在不添加任何代碼行的情況下工作,您確定已將Firebase分析庫添加到gradle文件夾嗎? – has19