我正在尝试使用 Visual Studio 2012 和 MonoDroid 创建我的第一个 MVVMCross 应用程序。该应用程序的目标是 API 级别 8 和 Android 版本 2.2。我能够将 Tutorial.UI.Droid 部署到模拟器上(将其更改为与上述相同的 API 级别和版本)并且它似乎可以工作。它越过了初始屏幕,但是当我复制相同的结构和布局时,我的应用程序只是卡在了引导循环中,并且正在重复加载屏幕。我将不胜感激任何帮助和指示
2 回答
我犯了一个错误,为我正在使用的一个 ViewModel 留下了一个视图,但它找不到它。包括在项目中解决了加载循环,但它似乎仍然没有加载视图,我需要强制关闭。我正在使用的模拟器是 2.2 版的银河选项卡
我从 stackoverflow 上的一篇文章中发现,Android 设备日志有很大帮助(丢失了该文章的链接)
http://docs.xamarin.com/android/advanced_topics/android_debug_log
10-17 04:10:22.574 D/AndroidRuntime(511): 10-17 04:10:22.574 D/AndroidRuntime(511): >>>>>>>>>>>>>> AndroidRuntime 开始 <<<< <<<<<<<<<< 10-17 04:10:22.574 D/AndroidRuntime(511): CheckJNI 开启 10-17 04:10:22.714 D/AndroidRuntime(511): --- 注册本机函数 - -- 10-17 04:10:23.254 D/AndroidRuntime(511):关闭 VM 10-17 04:10:23.265 D/jdwp(511):adbd 断开连接 10-17 04:10:23.275 I/AndroidRuntime(511 ):注意:线程'Binder Thread#3'的附加失败10-17 04:10:23.685 D / AndroidRuntime(519):10-17 04:10:23.685 D / AndroidRuntime(519):>>>>>> >>>>>>>> AndroidRuntime 开始 <<<<<<<<<<<<< 10-17 04:10:23.685 D/AndroidRuntime(519):CheckJNI 开启 10-17 04:10:23.815 D/AndroidRuntime(519):--- 注册本机功能 --- 10-17 04:10:24.445 D/AndroidRuntime(519):关闭 VM 10-17 04: 10:24.445 D/jdwp(519):adbd 断开连接 10-17 04:10:24.885 D/AndroidRuntime(527):10-17 04:10:24.885 D/AndroidRuntime(527):>>>>>>>> >>>>>> AndroidRuntime 开始 <<<<<<<<<<<<< 10-17 04:10:24.885 D/AndroidRuntime(527): CheckJNI 开启 10-17 04:10:25.016 D/ AndroidRuntime(527):---注册本机功能---10-17 04:10:25.545 I/PackageManager(60):删除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager( 60):删除包 Test.Droid 10-17 04:10:25.545 D/PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。10:23.815 D/AndroidRuntime(519):---注册本机功能---10-17 04:10:24.445 D/AndroidRuntime(519):关闭VM 10-17 04:10:24.445 D/jdwp(519 ): adbd 断开连接 10-17 04:10:24.885 D/AndroidRuntime(527): 10-17 04:10:24.885 D/AndroidRuntime(527): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<< 10-17 04:10:24.885 D/AndroidRuntime(527):CheckJNI 开启 10-17 04:10:25.016 D/AndroidRuntime(527):---注册本机功能 --- 10-17 04:10:25.545 I/PackageManager(60):删除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60):删除包 Test.Droid 10-17 04:10:25.545 D/PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。10:23.815 D/AndroidRuntime(519):---注册本机功能---10-17 04:10:24.445 D/AndroidRuntime(519):关闭VM 10-17 04:10:24.445 D/jdwp(519 ): adbd 断开连接 10-17 04:10:24.885 D/AndroidRuntime(527): 10-17 04:10:24.885 D/AndroidRuntime(527): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<< 10-17 04:10:24.885 D/AndroidRuntime(527):CheckJNI 开启 10-17 04:10:25.016 D/AndroidRuntime(527):---注册本机功能 --- 10-17 04:10:25.545 I/PackageManager(60):删除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60):删除包 Test.Droid 10-17 04:10:25.545 D/PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。--- 注册本机功能 --- 10-17 04:10:24.445 D/AndroidRuntime(519):关闭 VM 10-17 04:10:24.445 D/jdwp(519):adbd 断开连接 10-17 04:10 :24.885 D/AndroidRuntime(527):10-17 04:10:24.885 D/AndroidRuntime(527):>>>>>>>>>>>>>> AndroidRuntime 开始 <<<<<<<<<< <<<< 10-17 04:10:24.885 D/AndroidRuntime(527):CheckJNI 开启 10-17 04:10:25.016 D/AndroidRuntime(527):--- 注册本机函数 --- 10-17 04 :10:25.545 I/PackageManager(60): 删除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60): 删除包 Test.Droid 10-17 04:10:25.545 D/ PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。--- 注册本机功能 --- 10-17 04:10:24.445 D/AndroidRuntime(519):关闭 VM 10-17 04:10:24.445 D/jdwp(519):adbd 断开连接 10-17 04:10 :24.885 D/AndroidRuntime(527):10-17 04:10:24.885 D/AndroidRuntime(527):>>>>>>>>>>>>>> AndroidRuntime 开始 <<<<<<<<<< <<<< 10-17 04:10:24.885 D/AndroidRuntime(527):CheckJNI 开启 10-17 04:10:25.016 D/AndroidRuntime(527):--- 注册本机函数 --- 10-17 04 :10:25.545 I/PackageManager(60): 删除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60): 删除包 Test.Droid 10-17 04:10:25.545 D/ PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。关闭 VM 10-17 04:10:24.445 D/jdwp(519):adbd 已断开连接 10-17 04:10:24.885 D/AndroidRuntime(527):10-17 04:10:24.885 D/AndroidRuntime(527): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 10-17 04:10:24.885 D/AndroidRuntime(527): CheckJNI 开启 10- 17 04:10:25.016 D/AndroidRuntime(527):---注册本机功能--- 10-17 04:10:25.545 I/PackageManager(60):删除非系统包:Test.Droid 10-17 04 :10:25.545 D / PackageManager(60):删除包Test.Droid 10-17 04:10:25.545 D / PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。关闭 VM 10-17 04:10:24.445 D/jdwp(519):adbd 已断开连接 10-17 04:10:24.885 D/AndroidRuntime(527):10-17 04:10:24.885 D/AndroidRuntime(527): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 10-17 04:10:24.885 D/AndroidRuntime(527): CheckJNI 开启 10- 17 04:10:25.016 D/AndroidRuntime(527):---注册本机功能--- 10-17 04:10:25.545 I/PackageManager(60):删除非系统包:Test.Droid 10-17 04 :10:25.545 D / PackageManager(60):删除包Test.Droid 10-17 04:10:25.545 D / PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。885 D/AndroidRuntime(527):>>>>>>>>>>>>>> AndroidRuntime 开始 <<<<<<<<<<<<<< 10-17 04:10:24.885 D/AndroidRuntime( 527): CheckJNI 开启 10-17 04:10:25.016 D/AndroidRuntime(527): --- 注册本机函数 --- 10-17 04:10:25.545 I/PackageManager(60): 移除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60):删除包 Test.Droid 10-17 04:10:25.545 D/PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider .885 D/AndroidRuntime(527):>>>>>>>>>>>>>> AndroidRuntime 开始 <<<<<<<<<<<<<< 10-17 04:10:24.885 D/AndroidRuntime( 527): CheckJNI 开启 10-17 04:10:25.016 D/AndroidRuntime(527): --- 注册本机函数 --- 10-17 04:10:25.545 I/PackageManager(60): 移除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60):删除包 Test.Droid 10-17 04:10:25.545 D/PackageManager(60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider .10:25.545 I/PackageManager(60):删除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60):删除包 Test.Droid 10-17 04:10:25.545 D/PackageManager (60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。10:25.545 I/PackageManager(60):删除非系统包:Test.Droid 10-17 04:10:25.545 D/PackageManager(60):删除包 Test.Droid 10-17 04:10:25.545 D/PackageManager (60):未注册的内容提供者:Test.Droid.mono.MonoRuntimeProvider。mono_initGC_EXPLICIT 在 150 毫秒内释放了 589 个对象/30328 个字节 10-17 04:10:31.894 D/dalvikvm(265):GC_EXPLICIT 在 64 毫秒内释放了 445 个对象/20992 个字节 10-17 04:10:32.264 D/PackageParser(60):扫描包: /data/app/vmdl20752.tmp 10-17 04:10:32.524 D/PackageManager(60): 扫描包 Test.Droid 10-17 04:10:32.534 I/PackageManager(60): /data/app/Test .Droid-1.apk 更改;解包 10-17 04:10:32.556 D/PackageManager(60):缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:10:32.654 D/installd(35):DexInv:--- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:10:33.294 D/dalvikvm(544):DexOpt:加载 177ms,验证 178ms,选择 8ms 10-17 04:10:33.364 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:10:33.364 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono。mono_init,className = mono.MonoRuntimeProvider,isSyncable = false 10-17 04:10:33.364 D/PackageManager(60):提供者:mono.MonoRuntimeProvider 10-17 04:10:33.364 D/PackageManager(60):接收者:mono.android .Seppuku 10-17 04:10:33.364 D/PackageManager(60):活动:Test.droid.views.OfficeView 10-17 04:10:33.384 I/ActivityManager(60):强制停止包 Test.Droid uid=10045 10-17 04:10:33.564 I/installd(35):移动 /data/dalvik-cache/data@app@Test.Droid-1.apk@classes.dex -> /data/dalvik-cache/data@app @Test.Droid-1.apk@classes.dex 10-17 04:10:33.564 D/PackageManager(60): 新包安装在 /data/app/Test.Droid-1.apk 10-17 04:10: 34.016 D/dalvikvm(60):GC_EXPLICIT 在 201 毫秒内释放 6242 个对象/413272 个字节 10-17 04:10:34.016 D/AndroidRuntime(537):关闭 VM 10-17 04:10:34.016 D/jdwp(537):adbd 断开连接 10-17 04:10:34.094 I/dalvikvm(537):JNI:AttachCurrentThread(来自???.???) 10-17 04:10:34.094 I/AndroidRuntime(537):注意:附加线程'Binder Thread #3' 失败 10-17 04:10:34.108 D/VoiceDialerReceiver(265):onReceive Intent { act=android.intent.action.PACKAGE_ADDED dat=package:Test.Droid flg=0x10000000 cmp=com.android。 voicedialer/.VoiceDialerReceiver(有附加功能)} 10-17 04:10:34.114 V/RecognizerEngine(265):deleteCachedGrammarFiles /data/data/com.android.voicedialer/files/openentries.txt 10-17 04:10:34.224 W /RecognitionManagerService(60): 找不到可用的语音识别服务 10-17 04:10:34.894 D/AndroidRuntime(553): 10-17 04:10:34.894 D/AndroidRuntime(553): >>>>>>>> >>>>>> AndroidRuntime 启动 <<<<<<<<<<<<<10-17 04:10:34.894 D/AndroidRuntime(553):CheckJNI 已打开 10-17 04:10:35.034 D/AndroidRuntime(553):--- 注册本机函数 --- 10-17 04:10:35.564 I/ActivityManager(60):开始活动:Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=Test.Droid/Test.droid.views.OfficeView } 10-17 04:10:35.784 D/AndroidRuntime( 553): 关闭 VM 10-17 04:10:35.804 D/jdwp (553): adbd 断开连接 10-17 04:10:35.894 I/ActivityManager(60): 为活动 Test.Droid/Test 启动 proc Test.Droid .droid.views.OfficeView: pid=560 uid=10045 gids={3003, 1015} 10-17 04:10:36.204 I/WindowManager(60): 将旋转设置为 1, animFlags=1 10-17 04:10: 36.204 I/ActivityManager(60):配置更改:{ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=2 layout=35 uiMode=17 seq=14 } 10-17 04:10:36.474 I/ActivityThread(560):发布提供者 Test.Droid.mono.MonoRuntimeProvider。mono_init:mono.MonoRuntimeProvider 10-17 04:10:36.504 D/dalvikvm(560):尝试加载 lib /data/data/Test.Droid/lib/libmonodroid.so 0x44f51df8 10-17 04:10:36.504 D/dalvikvm( 560):添加共享库 /data/data/Test.Droid/lib/libmonodroid.so 0x44f51df8 10-17 04:10:36.664 W/MonoDroid-Debugger(560):尝试使用选项初始化调试器:--debugger- agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8877,server=y,embedding=1 10-17 04:10:36.684 W/MonoDroid-Debugger(560):接受的标准输出连接:29 10-17 04:10:37.484 E/mono(560):警告:此应用程序支持的运行时版本不可用。10-17 04:10:37.484 E/mono(560):使用默认运行时:v2.0.50727 10-17 04:10:40.404 W/monodroid-gc(560):GREF GC 阈值:1800 10-17 04:10 :41.204 W/WindowManager(60):应用程序冻结超时已过期。10-17 04:10:41。204 W/WindowManager(60):强制清除冻结:AppWindowToken{451330b0 token=HistoryRecord{450c63d0 Test.Droid/Test.droid.views.OfficeView}} 10-17 04:10:43.434 D/dalvikvm(60):GC_EXPLICIT 已释放4514 个对象/255248 字节在 127 毫秒内 10-17 04:10:45.594 W/ActivityManager(60):启动超时已过期,放弃唤醒锁!10-17 04:10:46.374 W/ActivityManager(60):HistoryRecord{450c63d0 Test.Droid/Test.droid.views.OfficeView} 的活动空闲超时 10-17 04:10:49.215 I/mvx(560):1.57设置:约定从 10-17 04:11:29.324 W/ActivityManager(60)开始:强制完成活动 Test.Droid/Test.droid.views.M10-17 04:10:49.765 I/mono-stdout(560):mvx :诊断:1.57 设置:约定从 10-17 04:11:29.324 W/ActivityManager(60)开始:强制完成活动 Test.Droid/Test.droid.views.OfficeView 10-17 04:12:33。mono_init40.164 D/dalvikvm(265):GC_EXPLICIT 在 58 毫秒内释放 238 个对象/13512 个字节 10-17 04:12:40.254 D/PackageParser(60):扫描包:/data/app/vmdl20754.tmp 10-17 04:12: 40.504 D/PackageManager(60): 扫描包 Test.Droid 10-17 04:12:40.524 I/PackageManager(60): /data/app/Test.Droid-1.apk 改变;解包 10-17 04:12:40.534 D/PackageManager(60): 缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:12:40.644 D/installd(35): DexInv: --- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:12:41.244 D/dalvikvm(615):DexOpt:加载 174ms,验证 178ms,选择 6ms 10-17 04:12:41.304 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:12:41.304 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono.MonoRuntimeProvider。GC_EXPLICIT 在 58 毫秒内释放 238 个对象/13512 个字节 10-17 04:12:40.254 D/PackageParser(60):扫描包:/data/app/vmdl20754.tmp 10-17 04:12:40.504 D/PackageManager(60):扫描包 Test.Droid 10-17 04:12:40.524 I/PackageManager(60): /data/app/Test.Droid-1.apk 已更改;解包 10-17 04:12:40.534 D/PackageManager(60): 缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:12:40.644 D/installd(35): DexInv: --- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:12:41.244 D/dalvikvm(615):DexOpt:加载 174ms,验证 178ms,选择 6ms 10-17 04:12:41.304 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:12:41.304 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono.MonoRuntimeProvider。GC_EXPLICIT 在 58 毫秒内释放 238 个对象/13512 个字节 10-17 04:12:40.254 D/PackageParser(60):扫描包:/data/app/vmdl20754.tmp 10-17 04:12:40.504 D/PackageManager(60):扫描包 Test.Droid 10-17 04:12:40.524 I/PackageManager(60): /data/app/Test.Droid-1.apk 已更改;解包 10-17 04:12:40.534 D/PackageManager(60): 缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:12:40.644 D/installd(35): DexInv: --- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:12:41.244 D/dalvikvm(615):DexOpt:加载 174ms,验证 178ms,选择 6ms 10-17 04:12:41.304 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:12:41.304 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono.MonoRuntimeProvider。扫描包:/data/app/vmdl20754.tmp 10-17 04:12:40.504 D/PackageManager(60): 扫描包 Test.Droid 10-17 04:12:40.524 I/PackageManager(60):/data/app /Test.Droid-1.apk 已更改;解包 10-17 04:12:40.534 D/PackageManager(60): 缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:12:40.644 D/installd(35): DexInv: --- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:12:41.244 D/dalvikvm(615):DexOpt:加载 174ms,验证 178ms,选择 6ms 10-17 04:12:41.304 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:12:41.304 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono.MonoRuntimeProvider。扫描包:/data/app/vmdl20754.tmp 10-17 04:12:40.504 D/PackageManager(60): 扫描包 Test.Droid 10-17 04:12:40.524 I/PackageManager(60):/data/app /Test.Droid-1.apk 已更改;解包 10-17 04:12:40.534 D/PackageManager(60): 缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:12:40.644 D/installd(35): DexInv: --- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:12:41.244 D/dalvikvm(615):DexOpt:加载 174ms,验证 178ms,选择 6ms 10-17 04:12:41.304 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:12:41.304 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono.MonoRuntimeProvider。apk 已更改;解包 10-17 04:12:40.534 D/PackageManager(60): 缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:12:40.644 D/installd(35): DexInv: --- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:12:41.244 D/dalvikvm(615):DexOpt:加载 174ms,验证 178ms,选择 6ms 10-17 04:12:41.304 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:12:41.304 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono.MonoRuntimeProvider。apk 已更改;解包 10-17 04:12:40.534 D/PackageManager(60): 缓存共享库 lib/armeabi/libmonodroid.so 10-17 04:12:40.644 D/installd(35): DexInv: --- BEGIN '/data /app/Test.Droid-1.apk' --- 10-17 04:12:41.244 D/dalvikvm(615):DexOpt:加载 174ms,验证 178ms,选择 6ms 10-17 04:12:41.304 D/installd ( 35): DexInv: --- END '/data/app/Test.Droid-1.apk' (success) --- 10-17 04:12:41.304 D/PackageManager( 60): 注册内容提供者: 测试.Droid.mono.MonoRuntimeProvider。mono_init,className = mono.MonoRuntimeProvider,isSyncable = false 10-17 04:12:41.304 D/PackageManager(60):提供者:mono.MonoRuntimeProvider 10-17 04:12:41.304 D/PackageManager(60):接收者:mono.android .Seppuku 10-17 04:12:41.304 D/PackageManager(60):活动:Test.droid.SplashScreenActivity Test.droid.views.EmployeeView Test.droid.views.OfficeView 10-17 04:12:41.324 I/ActivityManager( 60): 强制停止包 Test.Droid uid=10045 10-17 04:12:41.496 I/installd(35): move /data/dalvik-cache/data@app@Test.Droid-1.apk@classes.dex -> /data/dalvik-cache/data@app@Test.Droid-1.apk@classes.dex 10-17 04:12:41.496 D/PackageManager(60): 新包安装在 /data/app/Test. Droid-1.apk 10-17 04:12:41.926 D/dalvikvm(60):GC_EXPLICIT 在 202 毫秒内释放了 6613 个对象/458712 个字节 10-17 04:12:41.926 D/AndroidRuntime(608):关闭 VM 10-17 04:12:41.964 D/jdwp(608):adbd 断开连接 10-17 04:12:41.994 D/VoiceDialerReceiver(265):onReceive Intent { act=android.intent.action.PACKAGE_ADDED dat=package :Test.Droid flg=0x10000000 cmp=com.android.voicedialer/.VoiceDialerReceiver(有附加功能)} 10-17 04:12:41.994 V/RecognizerEngine(265):deleteCachedGrammarFiles /data/data/com.android.voicedialer/files /openentries.txt 10-17 04:12:42.016 I/dalvikvm(608):JNI:AttachCurrentThread(来自???.???)10-17 04:12:42.016 I/AndroidRuntime(608):注意:附加线程 'Binder Thread #3' 失败 10-17 04:12:42.074 W/RecognitionManagerService(60):找不到可用的语音识别服务 10-17 04:12:42.934 D/AndroidRuntime(626):10-17 04: 12:42.934 D/AndroidRuntime(626):>>>>>>>>>>>>>>AndroidRuntime 开始 <<<<<<<<<<<<< 10-17 04:12:42.934 D/AndroidRuntime(626):CheckJNI 开启 10-17 04:12:43.064 D/AndroidRuntime(626):- -- 注册本机函数 --- 10-17 04:12:43.614 I/ActivityManager(60):开始活动:Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=Test.Droid/Test.droid。 SplashScreenActivity } 10-17 04:12:43.824 D/AndroidRuntime(626):关闭 VM 10-17 04:12:43.854 D/jdwp(626):adbd 已断开连接 10-17 04:12:43.864 I/ActivityManager(60 ): 为活动 Test.Droid/Test.droid.SplashScreenActivity 启动 proc Test.Droid: pid=632 uid=10045 gids={3003, 1015} 10-17 04:12:44.224 I/WindowManager(60): 将旋转设置为1、animFlags=1 10-17 04:12:44.224 I/ActivityManager(60): 配置改变:{ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=2 layout=35 uiMode=17 seq=16} 10-17 04:12:44.564 I/ActivityThread(632 ): 发布提供者 Test.Droid.mono.MonoRuntimeProvider。mono_init:mono.MonoRuntimeProvider 10-17 04:12:44.584 D/dalvikvm(632):尝试加载 lib /data/data/Test.Droid/lib/libmonodroid.so 0x44f51e18 10-17 04:12:44.584 D/dalvikvm( 632):添加共享库 /data/data/Test.Droid/lib/libmonodroid.so 0x44f51e18 10-17 04:12:44.834 W/MonoDroid-Debugger(632):尝试使用选项初始化调试器:--debugger- agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8909,server=y,embedding=1 10-17 04:12:44.884 W/MonoDroid-Debugger(632):接受的标准输出连接:29 10-17 04:12:45.724 E/mono(632):警告:此应用程序支持的运行时版本不可用。10-17 04:12:45.724 E/mono(632):使用默认运行时:v2.0.50727 10-17 04:12:48.644 W/monodroid-gc(632):GREF GC 阈值:1800 10-17 04:12 :49.300 W/WindowManager(60):应用程序冻结超时已过期。10-17 04:12:49。300 W/WindowManager(60):强制清除冻结:AppWindowToken{4514e258 token=HistoryRecord{450ac4f8 Test.Droid/Test.droid.SplashScreenActivity}} 10-17 04:12:51.495 D/dalvikvm(60):GC_EXPLICIT 释放了 4408 个对象/ 254344 bytes in 129ms 10-17 04:12:53.635 W/ActivityManager(60): 启动超时已过期,放弃唤醒锁!10-17 04:12:54.454 W/ActivityManager(60):HistoryRecord{450ac4f8 Test.Droid/Test.droid.SplashScreenActivity} 的活动空闲超时 10-17 04:12:55.875 I/ActivityManager(60):显示的活动测试.Droid/Test.droid.SplashScreenActivity:12050 毫秒(总共 448199 毫秒)10-17 04:12:57.884 I/mvx(632):3.23 设置:约定开始 10-17 04:12:58.404 I/mono-stdout( 632):mvx:诊断:3.23 设置:约定开始 10-17 04:12:58.504 I/mvx(632):4.08 设置:应用程序开始 10-17 04:12:58。二级端 10-17 04:12:58.954 I/Navigation(632):4.53 使用 args 导航到 OfficeViewModel 10-17 04:12:58.954 I/mono-stdout(632):导航:诊断:4.53 使用 args 导航到 OfficeViewModel 10-17 04:13:01.354 I/ActivityManager(60):开始活动:Intent { flg=0x10000000 cmp=Test.Droid/Test.droid.views.OfficeView(有附加功能)} 10-17 04:13:11.365 W /ActivityManager(60): 启动超时,放弃唤醒锁!10-17 04:13:11.454 W/ActivityManager(60):HistoryRecord{450c5c18 Test.Droid/Test.droid.views.OfficeView} 的活动空闲超时 10-17 04:13:16.695 D/dalvikvm(314):GC_EXPLICIT在 170 毫秒内释放 152 个对象/7136 个字节 10-17 04:13:21.494 W/ActivityManager(60):HistoryRecord{450ac4f8 Test.Droid/Test.droid.SplashScreenActivity} 的活动销毁超时 10-17 04:13:21.754 D/达尔维克(333):
我也有同样的问题。我在https://github.com/slodge/NPlus1DaysOfMvvmCross中测试了任何 github 样本,回复同样的错误。
另一方面,我测试了一个 monodroid 应用程序,没有使用这个框架并且没有这个循环错误。
我也使用2.2 android。我在 android 4.0 中尝试相同的项目并且循环持续存在。