我正在研究一款Android應用程序,該程序在棉花糖和棒棒糖上運行良好,但在KitKat上崩潰。Android應用程序崩潰與Android 4.4.4
這是我的項目的build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
這是我的應用程序的build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.moover.moovenda.moover"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.android.support:support-v4:23.4.0'
compile 'io.nlopez.smartlocation:library:3.2.4'
compile 'net.danlew:android.joda:2.9.3.1'
compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.gcacace:signature-pad:1.2.0'
compile files('libs/cloudinary-android-1.2.2.jar')
}
apply plugin: 'com.google.gms.google-services'
這是錯誤我得到:
09- 20 18:20:00.629 22550-22550/com.moover.moovenda.moover I/SELinux:功能:selinux_android_load_priority [0],沒有sepolicy文件。
09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover I/SELinux:功能:selinux_android_load_priority [1],沒有sepolicy版本文件。
09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover I/SELinux的:功能:selinux_android_load_priority,優先級爲3的優先級的版本VE = SEPF_SM-G360F_4.4.4_A024
09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover E/SELinux:[DEBUG] get_category:變量seinfocat:默認靈敏度:NULL,cateogry:NULL 09-20 18:20:00.629 22550- 22550/com.moover.moovenda.moover E/SELinux:seapp_context_lookup:str_security_ctx爲空 09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover E/dalvikvm:>>>>>普通用戶 09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover E/dalvikvm:>>>>> com.moover.moovenda.moover [userId:0 | 10117] 09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover E/SELinux:[DEBUG] get_category:變量seinfocat:默認靈敏度:NULL,cateogry:NULL 09-20 18: 20:00.629 22550-22550/com.moover.moovenda.moover E/SELinux:seapp_context_lookup:str_security_ctx爲空 09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover D/dalvikvm:延遲啓用CheckJNI 09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover I/libpersona:KNOX_SDCARD檢查它是否爲10117 09-20 18:20:00.629 22550-22550/com.moover.moovenda.moover I/libpersona:KNOX_SDCARD not a persona 09-20 18:20:00.679 22550-22550/com.moover.moovenda.moover D/TimaKeyStoreProvider:addTimaSignatureService 09-20 18:20:00.689 22550-22550/com.moover .moovenda.moover D/TimaKeyStoreProvid er:無法添加TimaSignature服務,許可證檢查失敗 09-20 18:20:00.689 22550-22550/com.moover.moovenda.moover D/ActivityThread:添加了TimaKesytore提供商 09-20 18:20:00.719 22550-22550/com.moover.moovenda.moover D/ActivityThread:handleBindApplication:com.moover.moovenda.moover 09-20 18:20:00.749 22550-22550/com.moover.moovenda.moover W/dalvikvm:VFY:無法找到類在簽名中引用(Lcom/google/firebase/FirebaseOptions;) 09-20 18:20:00.749 22550-22550/com.moover.moovenda.moover E/dalvikvm:找不到'com.google.firebase.FirebaseOptions' ,從com.google.firebase.FirebaseApp方法引用。
嗨缺少這個,你看看這個[計算器問題(http://stackoverflow.com/問題/ 37360126 /獲取的異常的Java琅的NoClassDefFoundError-COM-谷歌 - 火力 - firebaseop)? – Vall0n