当我从Eclipse中运行Android应用我遇到这个错误,我的应用程序无法启动:安装错误:INSTALL_FAILED_MEDIA_UNAVAILABLE?
Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE
Please check
logcat output for more details. Launch canceled!
但是当我打开logcat中,我看到的logcat不打印任何东西。
我认为我的清单文件存在一些问题。所以这里是我的清单文件:
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"/>
号。正如我在标签中所说:) – hqt 2012-02-14 14:31:04
好的,是你的虚拟设备中安装的SD卡吗? ;-) – RKuehn 2012-02-14 15:22:38
对于其他使用HTC手机进行测试的用户,可以在连接到PC时将其设置为仅充电模式 – Arash 2014-03-14 12:41:40