用eclipse开发安卓程序,开发环境都设置好以后,新建一个空的安卓程序,但是模拟器启动以后,控制台显示“Installing HelloWorld.apk...”到这里就停了,死活不出现“success.”也就是说程序无法装到虚拟机上,这是怎么回事
工具版本:Eclipse3.5.2 / ADT14.0.0 / SDK_r14下面是控制台的提示(死活不出现success!):
[2011-10-21 21:08:12 - test] Android Launch!
[2011-10-21 21:08:12 - test] adb is running normally.
[2011-10-21 21:08:12 - test] Performing com.test.TestActivity activity launch
[2011-10-21 21:08:12 - test] Automatic Target Mode: launching new emulator with compatible AVD 'HVGA'
[2011-10-21 21:08:12 - test] Launching a new emulator with Virtual Device 'HVGA'
[2011-10-21 21:08:16 - test] New emulator found: emulator-5554
[2011-10-21 21:08:16 - test] Waiting for HOME ('android.process.acore') to be launched...
[2011-10-21 21:08:36 - test] HOME is up on device 'emulator-5554'
[2011-10-21 21:08:36 - test] Uploading test.apk onto device 'emulator-5554'
[2011-10-21 21:08:36 - test] Installing test.apk...
工具版本:Eclipse3.5.2 / ADT14.0.0 / SDK_r14下面是控制台的提示(死活不出现success!):
[2011-10-21 21:08:12 - test] Android Launch!
[2011-10-21 21:08:12 - test] adb is running normally.
[2011-10-21 21:08:12 - test] Performing com.test.TestActivity activity launch
[2011-10-21 21:08:12 - test] Automatic Target Mode: launching new emulator with compatible AVD 'HVGA'
[2011-10-21 21:08:12 - test] Launching a new emulator with Virtual Device 'HVGA'
[2011-10-21 21:08:16 - test] New emulator found: emulator-5554
[2011-10-21 21:08:16 - test] Waiting for HOME ('android.process.acore') to be launched...
[2011-10-21 21:08:36 - test] HOME is up on device 'emulator-5554'
[2011-10-21 21:08:36 - test] Uploading test.apk onto device 'emulator-5554'
[2011-10-21 21:08:36 - test] Installing test.apk...
在网上铺天盖地搜,还是没发现什么问题啊,ADT、SDK都能用,模拟器也好使,但是程序就是无法安装到模拟器里面去,我真的快崩溃了。。
就是一个简单的helloworld程序。。先开模拟器再运行程序还是没用
package com.helloworld;import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;public class HelloWorld extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv=new TextView(this);
tv.setText("第一个安卓程序");
setContentView(tv);
}
}