AVD是启动的,但没有正常装载helloworld,当然显示不了结果了。后面应该有装载apk的,但恰恰没有。这就是问题了,但不知道怎么解决[2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] ------------------------------ [2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] Android Launch! [2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] adb is running normally. [2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] Performing com.example.android.helloworld.HelloWorld activity launch [2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] Failed to find an AVD compatible with target 'Android 1.1'. [2012-07-11 16:42:35 - com.example.android.helloworld.HelloWorld] Still no compatible AVDs with target 'Android 1.1': Aborting launch. [2012-07-11 16:42:35 - com.example.android.helloworld.HelloWorld] Performing com.example.android.helloworld.HelloWorld activity launch [2012-07-11 16:43:08 - SDK Manager] Created AVD 'hhh' based on Android 1.6, ARM (armeabi) processor, [2012-07-11 16:43:08 - SDK Manager] with the following hardware config: [2012-07-11 16:43:08 - SDK Manager] hw.lcd.density=240 [2012-07-11 16:43:08 - SDK Manager] vm.heapSize=24 [2012-07-11 16:43:32 - com.example.android.helloworld.HelloWorld] Launching a new emulator with Virtual Device 'hhh'
Failed to find an AVD compatible with target 'Android 1.1'.这里已经提示你了,未找到Android 1.1运行的AVD环境通过Eclipse的菜单“Windows”-》"Android SDK and AVD Manager"->“News” 创建一个和你当前Helloword的版本相关的AVDAndroid 1.1版本未用过,我的环境最低是1.5起,因此,你要检查一下AndroidManifest.xml里面找到android:minSdkVersion,将版面设置6或者以上较适合,例如: <uses-sdk android:minSdkVersion="7" />
通过Eclipse的菜单“Windows”-》"Android SDK and AVD Manager"->“News” 然后将所有Android版本的AVD都创建一个。
Failed to find an AVD compatible with target 'Android 1.1'. 应该是模拟器不兼容的问题
[2012-07-11 19:27:37 - Hello] ------------------------------ [2012-07-11 19:27:37 - Hello] Android Launch! [2012-07-11 19:27:37 - Hello] adb is running normally. [2012-07-11 19:27:37 - Hello] Performing android.hello.HelloTwo activity launch [2012-07-11 19:27:37 - Hello] Automatic Target Mode: Preferred AVD 'Adroid4.0.3' is not available. Launching new emulator. [2012-07-11 19:27:37 - Hello] Launching a new emulator with Virtual Device 'Adroid4.0.3' [2012-07-11 19:27:43 - Emulator] emulator: emulator window was out of view and was recentered [2012-07-11 19:27:43 - Emulator] [2012-07-11 19:27:43 - Hello] New emulator found: emulator-5554 [2012-07-11 19:27:44 - Hello] Waiting for HOME ('android.process.acore') to be launched... [2012-07-11 19:28:25 - Hello] HOME is up on device 'emulator-5554' [2012-07-11 19:28:25 - Hello] Uploading Hello.apk onto device 'emulator-5554' [2012-07-11 19:28:25 - Hello] Installing Hello.apk... [2012-07-11 19:29:05 - Hello] Success!
[2012-07-11 16:03:14 - HelloWorld] ------------------------------
[2012-07-11 16:03:14 - HelloWorld] Android Launch!
[2012-07-11 16:03:14 - HelloWorld] adb is running normally.
[2012-07-11 16:03:14 - HelloWorld] Performing com.gx.helloworld.MainActivity activity launch
[2012-07-11 16:03:14 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'ggggg'
[2012-07-11 16:03:14 - HelloWorld] Launching a new emulator with Virtual Device 'ggggg'
没有读apk的过程,我想这就是问题,但原因是什么呢?
还有LOGCAT里的日志跑起来了吗比如看到start Activity ....helloworld?
[2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] Android Launch!
[2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] adb is running normally.
[2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] Performing com.example.android.helloworld.HelloWorld activity launch
[2012-07-11 16:42:33 - com.example.android.helloworld.HelloWorld] Failed to find an AVD compatible with target 'Android 1.1'.
[2012-07-11 16:42:35 - com.example.android.helloworld.HelloWorld] Still no compatible AVDs with target 'Android 1.1': Aborting launch.
[2012-07-11 16:42:35 - com.example.android.helloworld.HelloWorld] Performing com.example.android.helloworld.HelloWorld activity launch
[2012-07-11 16:43:08 - SDK Manager] Created AVD 'hhh' based on Android 1.6, ARM (armeabi) processor,
[2012-07-11 16:43:08 - SDK Manager] with the following hardware config:
[2012-07-11 16:43:08 - SDK Manager] hw.lcd.density=240
[2012-07-11 16:43:08 - SDK Manager] vm.heapSize=24
[2012-07-11 16:43:32 - com.example.android.helloworld.HelloWorld] Launching a new emulator with Virtual Device 'hhh'
<uses-sdk android:minSdkVersion="7" />
应该是模拟器不兼容的问题
[2012-07-11 19:27:37 - Hello] Android Launch!
[2012-07-11 19:27:37 - Hello] adb is running normally.
[2012-07-11 19:27:37 - Hello] Performing android.hello.HelloTwo activity launch
[2012-07-11 19:27:37 - Hello] Automatic Target Mode: Preferred AVD 'Adroid4.0.3' is not available. Launching new emulator.
[2012-07-11 19:27:37 - Hello] Launching a new emulator with Virtual Device 'Adroid4.0.3'
[2012-07-11 19:27:43 - Emulator] emulator: emulator window was out of view and was recentered
[2012-07-11 19:27:43 - Emulator]
[2012-07-11 19:27:43 - Hello] New emulator found: emulator-5554
[2012-07-11 19:27:44 - Hello] Waiting for HOME ('android.process.acore') to be launched...
[2012-07-11 19:28:25 - Hello] HOME is up on device 'emulator-5554'
[2012-07-11 19:28:25 - Hello] Uploading Hello.apk onto device 'emulator-5554'
[2012-07-11 19:28:25 - Hello] Installing Hello.apk...
[2012-07-11 19:29:05 - Hello] Success!
[2012-07-11 20:01:36 - NewHello] ------------------------------
[2012-07-11 20:01:36 - NewHello] Android Launch!
[2012-07-11 20:01:36 - NewHello] adb is running normally.
[2012-07-11 20:01:36 - NewHello] Performing hello.android.newhello.NewHelloActivity activity launch
[2012-07-11 20:01:36 - NewHello] Failed to find an AVD compatible with target 'Google APIs'.
[2012-07-11 20:01:37 - NewHello] Performing hello.android.newhello.NewHelloActivity activity launch
[2012-07-11 22:32:35 - com.example.android.helloworld.HelloWorld] ------------------------------
[2012-07-11 22:32:35 - com.example.android.helloworld.HelloWorld] Android Launch!
[2012-07-11 22:32:35 - com.example.android.helloworld.HelloWorld] adb is running normally.
[2012-07-11 22:32:35 - com.example.android.helloworld.HelloWorld] Performing com.example.android.helloworld.HelloWorld activity launch
[2012-07-11 22:32:35 - com.example.android.helloworld.HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'g20'
[2012-07-11 22:32:35 - com.example.android.helloworld.HelloWorld] Launching a new emulator with Virtual Device 'g20'
谁回答?