安装错误:INSTALL_FAILED_MEDIA_UNAVAILABLE? [英] Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE?

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

问题描述

当我从Eclipse中运行Android应用程序我遇到这个错误,我的应用程序无法启动:

  

安装错误:INSTALL_FAILED_MEDIA_UNAVAILABLE

     

请检查

     

logcat的输出获取更多信息。启动取消!

但是,当我打开的logcat,我看到的logcat不打印任何东西。

我觉得有些问题,我的清单文件。所以这里是我的清单文件:

  

      机器人:INSTALLLOCATION =preferExternal>>

 <使用-SDK安卓的minSdkVersion =8/>

<应用

    机器人:图标=@可绘制/ ic_launcher
    机器人:标签=@字符串/ APP_NAME
    机器人:可调试=真正的>

    <活动
        机器人:HelloWorld的名字=
        机器人:标签=测试>

        <意向滤光器>
            <作用机器人:名称=android.intent.action.MAIN/>
            <类机器人:名称=android.intent.category.LAUNCHER/>
        &所述; /意图滤光器>


    < /活性GT;
< /用途>

<使用-SDK机器人:targetSdkVersion =8安卓的minSdkVersion =8/>
<使用-权限的Andr​​oid:名称=android.permission.WRITE_EXTERNAL_STORAG​​E/>
 

     

解决方案

您的手机通过USB连接?如果是,SD卡未安装。尝试连接你的手机在其它模式或复制软件的apk到SD卡,从计算机上拔下并运行安装。它应该工作,那么: - )

例如,我的摩托罗拉Defy支持USB模式大容量存储模式和媒体服务器模式。在大容量存储模式,将SD卡从设备卸载,这样你就可以从你的电脑访问它。

的问题是preferExternal命令,它告诉Eclipse来试试SD卡安装。 您也可以尝试删除INSTALLLOCATION命令来安装你的应用程序在内部存储。

您好!

When I run an android app from eclipse I meet this error and my app does not start:

Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE

Please check

logcat output for more details. Launch canceled!

But when I opened logcat, I see that logcat doesn't print anything.

I think that some problem with my manifest file. so here is my manifest file:

android:installLocation="preferExternal">>

<uses-sdk android:minSdkVersion="8" />

<application

    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:debuggable="true" >

    <activity
        android:name=".HelloWorld"
        android:label="Test" >

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>


    </activity>
</application>

<uses-sdk android:targetSdkVersion="8" android:minSdkVersion="8"/>    
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

解决方案

Is your Phone connected via USB? if yes, the SDCard is not mounted. Try to connect your phone in another mode or copy your software apk onto the SDCard, disconnect it from the pc and run the installation. It should work then :-)

For example, my Motorola Defy supports the usb modes "mass storage mode" and "media server" mode. In mass storage mode, the sdcard is unmounted from the device, so you can access it from your pc.

The problem is the "preferExternal" command, which tells Eclipse to try the installation on SDCard. You can also try to erase the installLocation command to install it your app in internal storage.

Greetings!

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

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