7

这是我从 logcat 中复制的错误。我不知道为什么在清除应用程序设置屏幕中的数据后应用程序崩溃了。

    02-20 17:22:29.980 839-1094/? I/InputReader: Apps event's action is 0x0 (deviceType=0) [pCnt=1, s=0.44 ] when=459940281000
02-20 17:22:29.980 839-1093/? I/InputDispatcher: Delivering Apps to: action: 0x4
02-20 17:22:29.980 839-1093/? I/InputDispatcher: Delivering Apps to: action: 0x0
02-20 17:22:29.980 839-1093/? I/InputDispatcher: Delivering Apps to: action: 0x0
02-20 17:22:30.010 839-1094/? I/InputReader: Apps event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=459972752000
02-20 17:22:30.010 839-1093/? I/InputDispatcher: Delivering Apps to: action: 0x1
02-20 17:22:30.010 839-1093/? I/InputDispatcher: Delivering Apps to: action: 0x1
02-20 17:22:30.130 12257-12257/? E/dalvikvm: >>>>> com.Appsjet.app [ userId:0 | appId:10499 ]
02-20 17:22:30.190 839-1223/? V/SmartFaceService - 3rd party pause: onReceive [android.intent.action.ACTIVITY_STATE/com.Appsjet.app/create]
02-20 17:22:30.200 12257-12257/com.Appsjet.app D/dalvikvm: Trying to load lib /data/app-lib/com.Appsjet.app-6/libmonodroid.so 0x42a78da8
02-20 17:22:30.200 12257-12257/com.Appsjet.app D/dalvikvm: Added shared lib /data/app-lib/com.Appsjet.app-6/libmonodroid.so 0x42a78da8
02-20 17:22:30.230 12257-12257/com.Appsjet.app W/monodroid: Using override path: /data/data/com.Appsjet.app/files/.__override__
02-20 17:22:30.230 12257-12257/com.Appsjet.app W/monodroid: Trying to load sgen from: /data/data/com.Appsjet.app/files/.__override__/libmonosgen-2.0.so
02-20 17:22:30.230 12257-12257/com.Appsjet.app W/monodroid: Trying to load sgen from: /storage/emulated/0/Android/data/com.Appsjet.app/files/.__override__/libmonosgen-2.0.so
02-20 17:22:30.230 12257-12257/com.Appsjet.app W/monodroid: Trying to load sgen from: /data/app-lib/com.Appsjet.app-6/libmonosgen-2.0.so
02-20 17:22:30.230 12257-12257/com.Appsjet.app W/monodroid: Trying to load sgen from: /data/data/com.Appsjet.app/files/.__override__/links/libmonosgen-2.0.so
02-20 17:22:30.250 12257-12257/com.Appsjet.app A/monodroid: No assemblies found in '/data/data/com.Appsjet.app/files/.__override__' or '/storage/emulated/0/Android/data/com.Appsjet.app/files/.__override__'. Assuming this is part of Fast Deployment. Exiting...
02-20 17:22:30.270 839-1486/? I/ActivityManager: Process com.Appsjet.app (pid 12257) (adj 0) has died.
02-20 17:22:30.320 12271-12271/? E/dalvikvm: >>>>> com.Appsjet.app [ userId:0 | appId:10499 ]
02-20 17:22:30.360 839-1223/? V/SmartFaceService - 3rd party pause: onReceive [android.intent.action.ACTIVITY_STATE/com.Appsjet.app/create]
02-20 17:22:30.380 12271-12271/com.Appsjet.app D/dalvikvm: Trying to load lib /data/app-lib/com.Appsjet.app-6/libmonodroid.so 0x42a79d68
02-20 17:22:30.380 12271-12271/com.Appsjet.app D/dalvikvm: Added shared lib /data/app-lib/com.Appsjet.app-6/libmonodroid.so 0x42a79d68
02-20 17:22:30.410 12271-12271/com.Appsjet.app W/monodroid: Using override path: /data/data/com.Appsjet.app/files/.__override__
02-20 17:22:30.410 12271-12271/com.Appsjet.app W/monodroid: Trying to load sgen from: /data/data/com.Appsjet.app/files/.__override__/libmonosgen-2.0.so
02-20 17:22:30.410 12271-12271/com.Appsjet.app W/monodroid: Trying to load sgen from: /storage/emulated/0/Android/data/com.Appsjet.app/files/.__override__/libmonosgen-2.0.so
02-20 17:22:30.410 12271-12271/com.Appsjet.app W/monodroid: Trying to load sgen from: /data/app-lib/com.Appsjet.app-6/libmonosgen-2.0.so
02-20 17:22:30.410 12271-12271/com.Appsjet.app W/monodroid: Trying to load sgen from: /data/data/com.Appsjet.app/files/.__override__/links/libmonosgen-2.0.so
02-20 17:22:30.430 12271-12271/? A/monodroid: No assemblies found in '/data/data/com.Appsjet.app/files/.__override__' or '/storage/emulated/0/Android/data/com.Appsjet.app/files/.__override__'. Assuming this is part of Fast Deployment. Exiting...
02-20 17:22:30.450 839-2717/? I/ActivityManager: Process com.Appsjet.app (pid 12271) (adj 0) has died.
02-20 17:22:30.490 12285-12285/? E/dalvikvm: >>>>> com.Appsjet.app [ userId:0 | appId:10499 ]
02-20 17:22:30.520 839-1223/? V/SmartFaceService - 3rd party pause: onReceive [android.intent.action.ACTIVITY_STATE/com.Appsjet.app/create]
02-20 17:22:30.540 12285-12285/? D/dalvikvm: Trying to load lib /data/app-lib/com.Appsjet.app-6/libmonodroid.so 0x42a7a548
02-20 17:22:30.540 12285-12285/? D/dalvikvm: Added shared lib /data/app-lib/com.Appsjet.app-6/libmonodroid.so 0x42a7a548
02-20 17:22:30.570 12285-12285/? W/monodroid: Using override path: /data/data/com.Appsjet.app/files/.__override__
02-20 17:22:30.570 12285-12285/? W/monodroid: Trying to load sgen from: /data/data/com.Appsjet.app/files/.__override__/libmonosgen-2.0.so
02-20 17:22:30.570 12285-12285/? W/monodroid: Trying to load sgen from: /storage/emulated/0/Android/data/com.Appsjet.app/files/.__override__/libmonosgen-2.0.so
02-20 17:22:30.570 12285-12285/? W/monodroid: Trying to load sgen from: /data/app-lib/com.Appsjet.app-6/libmonosgen-2.0.so
02-20 17:22:30.570 12285-12285/? W/monodroid: Trying to load sgen from: /data/data/com.Appsjet.app/files/.__override__/links/libmonosgen-2.0.so
02-20 17:22:30.590 12285-12285/? A/monodroid: No assemblies found in '/data/data/com.Appsjet.app/files/.__override__' or '/storage/emulated/0/Android/data/com.Appsjet.app/files/.__override__'. Assuming this is part of Fast Deployment. Exiting...
02-20 17:22:30.610 839-4777/? I/ActivityManager: Process com.Appsjet.app (pid 12285) (adj 0) has died.
02-20 17:22:30.610 839-4777/? W/ActivityManager: Force removing ActivityRecord{4359bc20 u0 com.Appsjet.app/md58d07a10744293905ae52d7d8dd7a82d6.SplashScreen t27}: app died, no saved state
02-20 17:22:30.630 839-1223/? V/SmartFaceService - 3rd party pause: onReceive [android.intent.action.ACTIVITY_STATE/com.Appsjet.app/pause]

我不知道是什么原因造成的。我正在使用 Xamarin Studio PCL 项目。如果我通过 Xamarin Studio 运行和安装应用程序,该应用程序将运行。

4

1 回答 1

7

右键单击 Android 项目 > 属性 > Android 选项 > 打包,取消选中“使用快速部署”选项

根据要求澄清(乔治):显然,当您在调试模式下运行 Xamarin(或导出调试版本?)时,Xamarin 将库作为用户数据加载。因此,当您清除应用程序的数据时,您会删除正常发布版本中未删除的内容。关闭快速部署会强制 Xamarin 将文件放在正确的位置

于 2017-04-05T15:49:35.667 回答