失败 INSTALL_FAILED_MEDIA_UNAVAILABLE [英] Failure INSTALL_FAILED_MEDIA_UNAVAILABLE

查看:51
本文介绍了失败 INSTALL_FAILED_MEDIA_UNAVAILABLE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为 Visual Studio 2010 安装了 JDK、Android SDK 和 Mono Android,我已经创建了一个空的解决方案,我让模拟器在 Android 2.3.3 上启动并运行 - 到目前为止一切顺利.

I've installed JDK, Android SDK and Mono Android for Visual Studio 2010, I've created an empty solution and I got the emulator up and running with Android 2.3.3 - so far so good.

当我尝试将应用程序部署 (F5) 到模拟器时,它会连接到模拟器,并且一切正常,直到它开始安装平台框架".然后它加载了几分钟,最后抛出一个看起来像这样的异常:

When I try to deploy (F5) the app to the emulator, it connects to the emulator, and all goes fine until it starts "Installing the platform framework". Then it loads for several minutes, and finally throws an exception that looks like this:

我试过用谷歌搜索它,但在其他地方似乎没有描述 INSTALL_FAILED_MEDIA_UNAVAILABLE.

I have tried googlin' it, but the INSTALL_FAILED_MEDIA_UNAVAILABLE doesn't seem to be described anywhere else.

我不知道这是否是一个重要的细节,但在我的 PC 上,我已将我的主文件夹(文档、收藏夹、桌面等)重新映射到诸如D:\Mikkel\Dokumenter"之类的文件夹.最初启动模拟器时似乎会导致一些问题,但是在添加指向D:\Mikkel.android"的环境变量ANDROID_SDK_HOME"后,模拟器启动没有问题.

I don't know if this is an important detail, but on my PC I have remapped my home folders (Documents, Favorites, Desktop, etc.) to folders like "D:\Mikkel\Dokumenter". It seemed to cause some problems when starting the emulator initially, but after adding the environment variable "ANDROID_SDK_HOME" pointing to "D:\Mikkel.android" the emulator started up with no problems.

请指教.

推荐答案

我已经解决了这个问题——似乎如果你关闭模拟器启动时打开的(奇怪的)空 DOS 提示符,与模拟器的连接丢失了.

I've solved the problem - it seems that if you close the (weird) empty DOS prompt that opens when the emulator is started, the connection to the emulator is lost.

让 DOS 窗口保持打开状态,一切都像魅力一样.

Leaving the DOS window open, everything works like a charm.

这篇关于失败 INSTALL_FAILED_MEDIA_UNAVAILABLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆