package com.example.android.apis;
import android.app.Activity;
import android.os.Bundle;public class ApiDemos extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Eclipse控制台的信息:
[2011-04-25 16:57:33 - Androidtest] ------------------------------
[2011-04-25 16:57:33 - Androidtest] Android Launch!
[2011-04-25 16:57:33 - Androidtest] adb is running normally.
[2011-04-25 16:57:33 - Androidtest] Performing com.example.android.apis.ApiDemos activity launch
[2011-04-25 16:57:33 - Androidtest] Automatic Target Mode: launching new emulator with compatible AVD 'SDK2.2'
[2011-04-25 16:57:33 - Androidtest] Launching a new emulator with Virtual Device 'SDK2.2'
[2011-04-25 16:57:35 - Androidtest] New emulator found: emulator-5554
[2011-04-25 16:57:35 - Androidtest] Waiting for HOME ('android.process.acore') to be launched...
[2011-04-25 16:58:08 - Androidtest] WARNING: Application does not specify an API level requirement!
[2011-04-25 16:58:08 - Androidtest] Device API version is 8 (Android 2.2)
[2011-04-25 16:58:08 - Androidtest] HOME is up on device 'emulator-5554'
[2011-04-25 16:58:08 - Androidtest] Uploading Androidtest.apk onto device 'emulator-5554'
[2011-04-25 16:58:08 - Androidtest] Installing Androidtest.apk...
[2011-04-25 16:58:48 - Androidtest] Re-installation failed due to different application signatures.
[2011-04-25 16:58:48 - Androidtest] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-04-25 16:58:48 - Androidtest] Please execute 'adb uninstall com.example.android.apis' in a shell.
[2011-04-25 16:58:49 - Androidtest] Launch canceled!启动模拟器后,直接进入手机界面,不显示HelloWorld!
解决方案 »
- WebView加载网页的时候等待的那段黑屏的时间怎么处理?
- 用eclipse开发的安卓程序怎么在电脑上运行?
- 有一行有两个组件EditText和Button,Button靠最右,EditText宽度从最左到Button的左边,这个用相对布局,要怎么实现?
- ViewFlipper用法请教 在线等
- android播放hls协议的流媒体demo怎么写
- viewpage只在最后一个页面刷新数据
- 想要在menu实现一个来接受服务器端发送过来消息的界面,用ListView来排列消息。
- 百度定位SDK为什么有时候好使 有时候不好使呢
- 求助,SDK安装不成功?
- Android Studio App 開發
- Android 弹出选项问题
- 高手请进:如何启动程序传参数?类似于main()函数的传参数
Androidtest] Launch canceled!
2. 完全卸载AVD上已经安装的版本
在命令行中执行adb uninstall com.example.android.apis,其中com.example.android.apis为要卸载的应用程序的名称。
( 执行命令之前,请确保Adnroid SDK tools目录已添加入path环境变量
我的电脑-> 属性 -> 高级 -> 环境变量 -> 系统变量, 在path变量中添加Adnroid SDK tools的路径,保存即可。
)