我的Android应用程序有问题,它在模拟器中没有工作说“不幸的是'app name'已停止 我搜索了问题,但每个解决方案都基于提问者的代码 这是logCat我很抱歉它太长了,但是因为我是android的新手,我没有哪个是重要的,哪个不是。 BTW该应用程序允许用户登记到某个位置
logcat的:
11-06 17:43:47.481: E/Trace(975): error opening trace file: No such file or directory (2)
11-06 17:44:09.141: E/dalvikvm(975): Could not find class 'android.content.RestrictionEntry', referenced from method com.google.android.gms.app.receiver.GetRestrictionsReceiver.onReceive
11-06 17:44:09.141: W/dalvikvm(975): VFY: unable to resolve new-instance 435 (Landroid/content/RestrictionEntry;) in Lcom/google/android/gms/app/receiver/GetRestrictionsReceiver;
11-06 17:44:09.141: D/dalvikvm(975): VFY: replacing opcode 0x22 at 0x0033
11-06 17:44:09.141: D/dalvikvm(975): DexOpt: unable to opt direct call 0x08ec at 0x39 in Lcom/google/android/gms/app/receiver/GetRestrictionsReceiver;.onReceive
11-06 17:44:09.149: I/dalvikvm(975): Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method aod.b
11-06 17:44:09.149: W/dalvikvm(975): VFY: unable to resolve virtual method 3258: Landroid/os/UserManager;.getApplicationRestrictions (Ljava/lang/String;)Landroid/os/Bundle;
11-06 17:44:09.149: D/dalvikvm(975): VFY: replacing opcode 0x6e at 0x0012
11-06 17:44:09.149: I/dalvikvm(975): Could not find method android.accounts.AccountManager.getAccountsByTypeForPackage, referenced from method aod.c
11-06 17:44:09.149: W/dalvikvm(975): VFY: unable to resolve virtual method 1804: Landroid/accounts/AccountManager;.getAccountsByTypeForPackage (Ljava/lang/String;Ljava/lang/String;)[Landroid/accounts/Account;
11-06 17:44:09.149: D/dalvikvm(975): VFY: replacing opcode 0x6e at 0x000c
11-06 17:44:09.149: I/dalvikvm(975): Could not find method android.os.UserManager.getUserRestrictions, referenced from method aod.d
11-06 17:44:09.149: W/dalvikvm(975): VFY: unable to resolve virtual method 3260: Landroid/os/UserManager;.getUserRestrictions ()Landroid/os/Bundle;
11-06 17:44:09.149: D/dalvikvm(975): VFY: replacing opcode 0x6e at 0x000f
11-06 17:44:11.445: D/dalvikvm(975): GC_CONCURRENT freed 294K, 4% free 8694K/9040K, paused 4ms+1ms, total 236ms
11-06 17:44:17.153: I/dalvikvm(975): Could not find method android.app.admin.DevicePolicyManager.isDeviceOwnerApp, referenced from method com.google.android.gms.init.InitializeIntentService.onHandleIntent
11-06 17:44:17.153: W/dalvikvm(975): VFY: unable to resolve virtual method 2062: Landroid/app/admin/DevicePolicyManager;.isDeviceOwnerApp (Ljava/lang/String;)Z
11-06 17:44:17.153: D/dalvikvm(975): VFY: replacing opcode 0x6e at 0x00f4
11-06 17:44:17.341: E/dalvikvm(975): Could not find class 'android.app.AppOpsManager', referenced from method axo.a
11-06 17:44:17.341: W/dalvikvm(975): VFY: unable to resolve check-cast 386 (Landroid/app/AppOpsManager;) in Laxo;
11-06 17:44:17.341: D/dalvikvm(975): VFY: replacing opcode 0x1f at 0x000e
11-06 17:47:52.093: D/SystemBroadcastService(975): Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=
11-06 17:47:52.941: D/dalvikvm(975): GC_CONCURRENT freed 274K, 4% free 8833K/9140K, paused 13ms+8ms, total 98ms
11-06 17:47:53.469: D/SystemBroadcastService(975): Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=
11-06 17:47:53.797: D/SystemBroadcastService(975): Received broadcast action=android.intent.action.PACKAGE_REPLACED and uri=
11-06 17:47:55.053: D/dalvikvm(975): Trying to load lib /data/app-lib/com.google.android.gms-2/libAppDataSearch.so 0xa6a414c0
11-06 17:47:55.373: I/PeopleDatabaseHelper(975): cleanUpNonGplusAccounts done.
11-06 17:47:55.825: D/dalvikvm(975): Added shared lib /data/app-lib/com.google.android.gms-2/libAppDataSearch.so 0xa6a414c0
11-06 17:47:55.825: D/dalvikvm(975): No JNI_OnLoad found in /data/app-lib/com.google.android.gms-2/libAppDataSearch.so 0xa6a414c0, skipping init
11-06 17:47:55.949: V/dalvikvm(975): +++ not scanning '/system/lib/libwebcore.so' for 'nativeCreate' (wrong CL)
11-06 17:47:55.949: V/dalvikvm(975): +++ not scanning 'libnativehelper.so' for 'nativeCreate' (wrong CL)
11-06 17:47:55.949: V/dalvikvm(975): +++ not scanning 'libjavacore.so' for 'nativeCreate' (wrong CL)
11-06 17:47:55.949: V/dalvikvm(975): +++ scanning '/data/app-lib/com.google.android.gms-2/libAppDataSearch.so' for 'nativeCreate'
11-06 17:47:55.949: V/dalvikvm(975): +++ calling dlsym(Java_com_google_android_gms_icing_impl_NativeIndex_nativeCreate)
11-06 17:47:55.949: V/dalvikvm(975): Found 'Java_com_google_android_gms_icing_impl_NativeIndex_nativeCreate' with dlsym
11-06 17:47:55.949: D/Icing(975): Default language: en
11-06 17:47:55.989: D/dalvikvm(975): GC_CONCURRENT freed 353K, 5% free 8872K/9276K, paused 47ms+2ms, total 93ms
11-06 17:47:56.045: V/dalvikvm(975): +++ not scanning '/system/lib/libwebcore.so' for 'nativeGetCompactStatus' (wrong CL)
11-06 17:47:56.045: V/dalvikvm(975): +++ not scanning 'libnativehelper.so' for 'nativeGetCompactStatus' (wrong CL)
11-06 17:47:56.045: V/dalvikvm(975): +++ not scanning 'libjavacore.so' for 'nativeGetCompactStatus' (wrong CL)
11-06 17:47:56.045: V/dalvikvm(975): +++ scanning '/data/app-lib/com.google.android.gms-2/libAppDataSearch.so' for 'nativeGetCompactStatus'
11-06 17:47:56.045: V/dalvikvm(975): +++ calling dlsym(Java_com_google_android_gms_icing_impl_NativeIndex_nativeGetCompactStatus)
11-06 17:47:56.045: V/dalvikvm(975): Found 'Java_com_google_android_gms_icing_impl_NativeIndex_nativeGetCompactStatus' with dlsym
11-06 17:47:56.045: V/dalvikvm(975): +++ not scanning '/system/lib/libwebcore.so' for 'nativeInit' (wrong CL)
11-06 17:47:56.045: V/dalvikvm(975): +++ not scanning 'libnativehelper.so' for 'nativeInit' (wrong CL)
11-06 17:47:56.045: V/dalvikvm(975): +++ not scanning 'libjavacore.so' for 'nativeInit' (wrong CL)
11-06 17:47:56.045: V/dalvikvm(975): +++ scanning '/data/app-lib/com.google.android.gms-2/libAppDataSearch.so' for 'nativeInit'
11-06 17:47:56.045: V/dalvikvm(975): +++ calling dlsym(Java_com_google_android_gms_icing_impl_NativeIndex_nativeInit)
11-06 17:47:56.045: V/dalvikvm(975): Found 'Java_com_google_android_gms_icing_impl_NativeIndex_nativeInit' with dlsym
11-06 17:47:56.045: D/Icing(975): Init last flush num docs 0 last docstore size 0
11-06 17:47:56.185: D/Icing(975): Docid map file has no data, nothing to scan
11-06 17:47:56.185: D/Icing(975): File /data/data/com.google.android.gms/files/AppDataSearch/main/cur/ds.perdocdata contains 0 records of size 6
11-06 17:47:56.421: D/Icing(975): Init docstore ok num docs 0 bytes 0
11-06 17:47:56.637: V/Icing(975): Lite index crc computed in 0.358ms
11-06 17:47:56.637: V/Icing(975): Lite index init ok in 24.464ms
11-06 17:47:56.637: V/Icing(975): Warming lite-index took 0.050ms
11-06 17:47:56.637: V/Icing(975): Warming lexicon took 0.026ms
11-06 17:47:56.637: V/Icing(975): Warming display mappings took 0.026ms
11-06 17:47:56.637: D/Icing(975): Init index ok num docs 0
11-06 17:47:56.637: D/Icing(975): Init done
11-06 17:47:56.637: V/dalvikvm(975): +++ not scanning '/system/lib/libwebcore.so' for 'nativeSetLogPriority' (wrong CL)
11-06 17:47:56.637: V/dalvikvm(975): +++ not scanning 'libnativehelper.so' for 'nativeSetLogPriority' (wrong CL)
11-06 17:47:56.637: V/dalvikvm(975): +++ not scanning 'libjavacore.so' for 'nativeSetLogPriority' (wrong CL)
11-06 17:47:56.637: V/dalvikvm(975): +++ scanning '/data/app-lib/com.google.android.gms-2/libAppDataSearch.so' for 'nativeSetLogPriority'
11-06 17:47:56.637: V/dalvikvm(975): +++ calling dlsym(Java_com_google_android_gms_icing_impl_NativeIndex_nativeSetLogPriority)
11-06 17:47:56.637: V/dalvikvm(975): Found 'Java_com_google_android_gms_icing_impl_NativeIndex_nativeSetLogPriority' with dlsym
11-06 17:47:58.529: V/dalvikvm(975): +++ not scanning '/system/lib/libwebcore.so' for 'nativeRestoreIndex' (wrong CL)
11-06 17:47:58.529: V/dalvikvm(975): +++ not scanning 'libnativehelper.so' for 'nativeRestoreIndex' (wrong CL)
11-06 17:47:58.529: V/dalvikvm(975): +++ not scanning 'libjavacore.so' for 'nativeRestoreIndex' (wrong CL)
11-06 17:47:58.581: V/dalvikvm(975): +++ scanning '/data/app-lib/com.google.android.gms-2/libAppDataSearch.so' for 'nativeRestoreIndex'
11-06 17:47:58.581: V/dalvikvm(975): +++ calling dlsym(Java_com_google_android_gms_icing_impl_NativeIndex_nativeRestoreIndex)
11-06 17:47:58.581: V/dalvikvm(975): Found 'Java_com_google_android_gms_icing_impl_NativeIndex_nativeRestoreIndex' with dlsym
11-06 17:47:58.709: V/dalvikvm(975): +++ not scanning '/system/lib/libwebcore.so' for 'nativeOnSleep' (wrong CL)
11-06 17:47:58.709: V/dalvikvm(975): +++ not scanning 'libnativehelper.so' for 'nativeOnSleep' (wrong CL)
11-06 17:47:58.709: V/dalvikvm(975): +++ not scanning 'libjavacore.so' for 'nativeOnSleep' (wrong CL)
11-06 17:47:58.709: V/dalvikvm(975): +++ scanning '/data/app-lib/com.google.android.gms-2/libAppDataSearch.so' for 'nativeOnSleep'
11-06 17:47:58.709: V/dalvikvm(975): +++ calling dlsym(Java_com_google_android_gms_icing_impl_NativeIndex_nativeOnSleep)
11-06 17:47:58.709: V/dalvikvm(975): Found 'Java_com_google_android_gms_icing_impl_NativeIndex_nativeOnSleep' with dlsym