我想在我的設備中測試我的Android應用程序。 首先,我已經在android 6
上測試過,它工作正常,當我嘗試安裝在我的android 4.4.2
設備上時,它墜毀了。 這是我gradle這個文件我的Android應用程序崩潰時安裝在Android 4.4.2
compileSdkVersion 25
buildToolsVersion "25.0.2"
minSdkVersion 14
targetSdkVersion 25
SDK的信息在這裏任何一個有什麼想法可以幫我請。 Logcat: 02-22 12:46:17.170 2136-2136/? D/dalvikvm: Not late-enabling CheckJNI (already on) 02-22 12:46:17.190 2136-2136/? D/AndroidRuntime: Shutting down VM 02-22 12:46:17.190 2136-2136/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x9cd8eb20) 02-22 12:46:17.190 2136-2142/? E/jdwp: Failed sending reply to debugger: Broken pipe 02-22 12:46:17.190 2136-2142/? D/dalvikvm: Debugger has detached; object registry had 1 entries 02-22 12:46:17.190 2136-2136/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.kaouther.needtaxi, PID: 2136 java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.example.kaouther.needtaxi-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.kaouther.needtaxi-1, /vendor/lib, /system/lib]] at android.app.ActivityThread.installProvider(ActivityThread.java:4793) at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325) at android.app.ActivityThread.access$1500(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.example.kaouther.needtaxi-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.kaouther.needtaxi-1, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:497) at java.lang.ClassLoader.loadClass(ClassLoader.java:457) at android.app.ActivityThread.installProvider(ActivityThread.java:4778) at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325) at android.app.ActivityThread.access$1500(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) 02-22 12:47:36.370 2136-2136/? I/Process: Sending signal. PID: 2136 SIG: 9
您可以在崩潰後發佈日誌貓 –
發佈您的錯誤日誌! –