问题描述
Xamarin应用程序可以运行并且可以早于该有争议的新设备Android 7.1.2部署。 从应用程序中心直接安装/ ADB安装也可以在此设备上正常运行。
- 在开发人员选项中检查是否已启用USB调试。
- 试图从“设置-应用”以及
adb uninstall <package_name>
卸载应用 - 尝试将最小的新项目部署到设备,但失败,结果相同。那么更有可能与系统设置有关?
Installing the API 28 platform framework.
10% ... 3072kb of 30156kb copied
20% ... 6080kb of 30156kb copied
30% ... 9088kb of 30156kb copied
40% ... 12096kb of 30156kb copied
50% ... 15104kb of 30156kb copied
60% ... 18112kb of 30156kb copied
70% ... 21120kb of 30156kb copied
80% ... 24128kb of 30156kb copied
90% ... 27200kb of 30156kb copied
100% ... 30156kb of 30156kb copied
ADB0010: Deployment Failed
Mono.AndroidTools.InstallFailedException: Unexpected install output: app_process: ro.boot.root property .Success
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output,String packageName)
at Mono.AndroidTools.AndroidDevice.<>c__displayClass97_0.<InstallPackage>b__0(Task`1 t)
at System.Threading.Tasks.ContinuationTaskFromresultTask`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AndroidDeviceExtensions.<PushAndInstallPackage>d__11.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at AndroidDeviceExtensions.<PushAndInstallPackage>d__11.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AndroidDeviceExtensions.<InstallSharedplatformAsync>d__24.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<InstallSharedplatformAsync>d__114.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<EnsureCorrectSharedRuntimes>d__111.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<RunAsync>d__110.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>d__108.MoveNext()
ADB0010: Mono.AndroidTools.InstallFailedException: Unexpected install output: app_process: ro.boot.root property .Success
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output,String packageName)
at Mono.AndroidTools.AndroidDevice.<>c__displayClass97_0.<InstallPackage>b__0(Task`1 t)
at System.Threading.Tasks.ContinuationTaskFromresultTask`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AndroidDeviceExtensions.<PushAndInstallPackage>d__11.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()
at AndroidDeviceExtensions.<PushAndInstallPackage>d__11.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AndroidDeviceExtensions.<InstallSharedplatformAsync>d__24.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<InstallSharedplatformAsync>d__114.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<EnsureCorrectSharedRuntimes>d__111.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<RunAsync>d__110.MoveNext()
--- End of stack trace from prevIoUs location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>d__108.MoveNext()
Done building project "UI.Droid.csproj" -- Failed.
Build Failed.
11>Deployment Failed to Quectel Device.
========== Build: 10 succeeded,0 Failed,0 up-to-date,0 skipped ==========
========== Deploy: 0 succeeded,1 Failed,0 skipped ==========
解决方法
对于寻求相同解决方案的任何人,在扎根Android操作系统后,对pm安装的响应就很正常-只是一个“成功”,而不是那么长。
,清除手机上的一些存储空间,然后重试。这对我有用。
,检查您的手机是否有设置static void aCursorPosCallback(GLFWwindow* window,double xpos,double ypos)
{
WindowManager *wm = (WindowManager *) glfwGetWindowUserPointer(window);
wm->cursorPosCallback(xpos,ypos);
}
void WindowManager::setCursorCallback(void (*callback)(double,double)) {
this->cursorPosCallback = callback;
glfwSetCursorPosCallback(this->window,aCursorPosCallback);
}
,并且已启用。
您可以在 Install via USB
选项下方找到它。