我正在开发Xamarin.Forms应用程序(早期),并且刚刚设置了AppCenter来构建和分发它。 AppCenter接收Xamarin.Android项目,成功构建该项目,使用相同的调试密钥进行签名,并使.apk可下载。我已经在两种不同的设备上进行了测试,并且该应用程序安装成功,但是无法运行(打开和关闭时会立即显示),没有错误显示。
如果我从Visual Studio部署应用程序,则可以正常运行。
Logcat:
Time Device Name Type PID Tag Message
03-16 18:13:55.483 Sony D6503 Warning 1326 WindowManager java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8108048 does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8890)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8881)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2766)
at com.android.server.wm.Session.remove(Session.java:187)
at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3103)
at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5610)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3413)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:234)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
03-16 18:13:55.483 Sony D6503 Warning 1326 WindowManager Failed looking up window
03-16 18:13:55.474 Sony D6503 Warning 1326 ActivityManager Force removing ActivityRecord{6a47b30 u0 com.companyname/md5dac3b7b583c4c7d6c1c265db80217d7a.MainActivity t28}: app died, no saved state
03-16 18:13:55.424 Sony D6503 Error 27642 monodroid No assemblies found in '/data/user/0/com.companyname/files/.__override__' or '/storage/emulated/0/Android/data/com.companyname/files/.__override__'. Assuming this is part of Fast Deployment. Exiting...
任何建议都将受到赞赏。
答案 0 :(得分:0)
此问题的解决方案是从项目选项中禁用“使用共享的运行时”属性。
说明: