职业IT人-IT人生活圈

 找回密码
 成为会员
搜索
查看: 461|回复: 8

Android 报错汇总篇

[复制链接]
楠楠 发表于 2011-7-28 10:11 | 显示全部楼层 |阅读模式
1.
[2011-04-13 10:59:41 - ApiDemosApplication] Installation error: INSTALL_FAILED_MISSING_FEATURE
[2011-04-13 10:59:41 - ApiDemosApplication] Please check logcat output for more details.
[2011-04-13 10:59:41 - ApiDemosApplication] Launch canceled!


解决如下:
注释掉camera功能,相机功能,因为(android.hardware.camera)ApiDemos似乎无法要求安装:
< - !<uses-feature Android:name="android.hardware.camera" /> - >“

----------------------------------------------------------------------------------------------------------------------------

能文能武 发表于 2011-7-28 10:11 | 显示全部楼层
android,No Launcher activity found!

在Eclipse中运行Android程序
出现如下错误:
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
网上找了很久,结果发现在AndroidManifest.xml中必须要有一个android.intent.action.MAIN(注意大小写,这个害死我了)
代码如下:
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
这样才能正确运行程序


全部代码是这个样子滴:

Xml代码  
<?xml version="1.0" encoding="utf-8"?>  
<manifest xmlns:android="http://schemas.android.com/apk/res/android"  
    package="com.artifex.mupdf" android:versionCode="1"  
    android:versionName="1.0">  
    <uses-sdk android:minSdkVersion="8" />  
  
    <application android:icon="@drawable/icon" android:label="@string/app_name">  
        <activity android:name=".MuPDFActivity" android:label="@string/app_name">  
            <intent-filter>  
                <SPAN style="COLOR: #ff0000"><action android:name="android.intent.action.MAIN" />  
                <category android:name="android.intent.category.LAUNCHER" /></SPAN>  
            </intent-filter>  
        </activity>  
  
    </application>  
</manifest>  

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.artifex.mupdf" android:versionCode="1"
        android:versionName="1.0">
        <uses-sdk android:minSdkVersion="8" />

        <application android:icon="@drawable/icon" android:label="@string/app_name">
                <activity android:name=".MuPDFActivity" android:label="@string/app_name">
                        <intent-filter>
                                <action android:name="android.intent.action.MAIN" />
                                <category android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                </activity>

        </application>
</manifest>

已经来了吗 发表于 2011-7-28 10:11 | 显示全部楼层
Failed to push the item(s)


一般是因为 在ddms中向虚拟机传文件时间超时所致。

eclipse->windwos->references->android->DDMS->ADB connection time out (ms)


改大点就行了

北大青鸟 发表于 2011-7-28 10:11 | 显示全部楼层
最后一个很受用,感谢分享 :)
再附上我的一个:

错误:emulator-5554 disconnected,the user data image is used by another emulator
描述:使用Android模拟器经常遇到连不上、连一次掉一次等诸多问题
办法:    
    Eclipse的IDE:    
        英文原版      
            window -> Show Views -> device -> view menu -> Reset adb     
        中文版      
            窗口(W) -> 显示视图(V) ->Devices -> 视图菜单 ->Reset adb

无处不在 发表于 2011-7-28 10:11 | 显示全部楼层
最后一条很适用。非常感谢。。

fl 发表于 2011-7-28 10:12 | 显示全部楼层
这个帖好,希望大家集思广益,把遇到的疑难杂症和解决办法都分享出来

ksdal 发表于 2011-7-28 10:12 | 显示全部楼层
Lagunarock
这个帖好,希望大家集思广益,把遇到的疑难杂症和解决办法都分享出来

大家加油!谢谢了

broken 发表于 2011-7-28 10:12 | 显示全部楼层
大家一起总结错误和解决的办法拉,遇到方便解决

会玩就好 发表于 2011-7-28 10:12 | 显示全部楼层
运行avd时弹出个dos窗口:error loading preferences,有人碰到过么?怎么解决啊?


您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

QQ|手机版|小黑屋|网站帮助|职业IT人-IT人生活圈 ( 粤ICP备12053935号-1 )|网站地图
本站文章版权归原发布者及原出处所有。内容为作者个人观点,并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是信息平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽造成漏登,请及时联系我们,我们将根据著作权人的要求立即更正或者删除有关内容。

GMT+8, 2024-5-2 17:53 , Processed in 0.131315 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表