Android程序调试时出现的两个问题
2012-10-08 10:37
369 查看
今天调试程序时出现了两个问题,找了一下解决方法记录下来
1、No Launcher activity found!错误
android工程跑程序时显示No Launcher activity found错误,模拟器也不运行。
上网一查,发现问题出在整个项目的那个主配置xml中,一般名字都是叫AndroidManifest.xml
里面没有配置启动项(原因多种多样),在<application></application>中少了这段代码
<activity android:name=".MainActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
其中.MainActivity就是你的项目的主Activity
2、Re-installation failed due to different application signatures.
2011-10-31 13:25:00 - MyAndroid] Re-installation failed due to different application signatures.
[2011-10-31 13:25:00 - MyAndroid] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-10-31 13:25:00 - MyAndroid] Please execute 'adb uninstall com.test' in a shell.
[2011-10-31 13:25:00 - MyAndroid] Launch canceled!
原因是已经存在一个程序签名了,必须删除一个。
解决方法:在cmd命令窗口中进入adb.exe所在的路径,执行: adb uninstall com.test命令就可以了。
1、No Launcher activity found!错误
android工程跑程序时显示No Launcher activity found错误,模拟器也不运行。
上网一查,发现问题出在整个项目的那个主配置xml中,一般名字都是叫AndroidManifest.xml
里面没有配置启动项(原因多种多样),在<application></application>中少了这段代码
<activity android:name=".MainActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
其中.MainActivity就是你的项目的主Activity
2、Re-installation failed due to different application signatures.
2011-10-31 13:25:00 - MyAndroid] Re-installation failed due to different application signatures.
[2011-10-31 13:25:00 - MyAndroid] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-10-31 13:25:00 - MyAndroid] Please execute 'adb uninstall com.test' in a shell.
[2011-10-31 13:25:00 - MyAndroid] Launch canceled!
原因是已经存在一个程序签名了,必须删除一个。
解决方法:在cmd命令窗口中进入adb.exe所在的路径,执行: adb uninstall com.test命令就可以了。
相关文章推荐
- 关于Android应用调试在小米手机安装程序时出现Installation failed with message INSTALL_CANCELED_BY_USER问题解决
- eclipse用android真机调试程序出现的问题
- android打开图库程序的时候出现的问题调试
- android 程序调试出现source not found的问题
- eclipse下使用Genymotion调试Android程序出现的问题
- eclipse下使用Genymotion调试Android程序出现的问题
- Android 写下载程序 调试 url 无效问题
- gdbserver 调试ARM 上的程序出现“ waitpid:Function not implemented ”问题的解决
- Android程序安装完出现了两个图标
- android自动更新程序,安装完以后就什么都没有了,没有出现安装成功的界面的问题
- 调试android程序过程中出现:INSTALL_FAILED_INSUFFICIENT_STORAGE
- Android solve设备(手机)旋转过程中出现程序中断问题
- 解决android 6.0 不支持HttpClient,出现程序报错程序包org.apache.http不存在问题
- 【ArcGIS Android开发】重启Eclipse后可能出现两个问题
- 调试android程序过程中出现:INSTALL_FAILED_INSUFFICIENT_STORAGE
- QT程序出现Bus Error问题的调试
- 解决vc++DEBUG ERROR问题前几天师弟调试程序的时候出现了这样一个错误,出错的位置是在delete [] 一个动态分配的数组时出现的。 经过调查发现错误是因为他之前在给数组赋值的时候越界了
- Android程序中出现的问题
- 解决使用小米手机调试android开发程序的问题
- 第一次调试微信的Android版本出现的问题和解决方法