我最近安装了 Visual Studio Community Edition 2015 和 xamarin,我下载了 android sdk 包(19、21、23 api)。我成功构建了我的解决方案,但在发布状态下我得到以下信息:
`I:Unknown]: Found Android SDK. API levels: 19, 21, 23
[I:Unknown]: Found Xamarin.Android 6.1.0
[D:RunShellCommand]: emulator-5554 getprop
[D:RunShellCommand]: emulator-5554 am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_21,App1.App1" "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions"
[D:RunShellCommand]: emulator-5554 cat /data/system/packages.xml
[D:RunShellCommand]: emulator-5554 cat /dbdata/system/packages.xml
[D:RunShellCommand]: emulator-5554 pm uninstall "Mono.Android.DebugRuntime"
[D:RunShellCommand]: emulator-5554 pm uninstall "Mono.Android.DebugRuntime"
[D:RunShellCommand]: emulator-5554 rm "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk"
[W:Failed to delete package file: {0}]: One or more errors occurred.
[E:]: Deployment failed
Mono.AndroidTools.AdbException: Read-only file system
at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token)
at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
请帮忙!!!!
最佳答案
您是否直接从 Android 虚拟设备管理器运行模拟器并让它完全启动? 我一直遇到类似的错误,我认为这是由于新的模拟设备尚未准备就绪。
在设备完成启动至操作系统后,我能够部署并运行我的应用程序(尽管速度非常慢)。
尽管使用了 HAXM(而且我确实有一台相当高规范的 PC),但我并没有指望它能像狗一样奔跑。我现在正在考虑从 Windows 10 家庭版升级到专业版并使用 Hyper-V。
关于c# - 无法在 Android 模拟器 xamarin 上发布 Hello World 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37767869/