【发布时间】:2012-04-30 21:29:50
【问题描述】:
我正在 http://developer.android.com/resources/tutorials/hello-world.html 从事 Hello World 项目
当我运行应用程序时,问题就来了。我收到的消息序列类似于:
[2012-04-30 15:13:19 - HelloAndroid] ------------------------------
[2012-04-30 15:13:19 - HelloAndroid] Android Launch!
[2012-04-30 15:13:19 - HelloAndroid] adb is running normally.
[2012-04-30 15:13:19 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2012-04-30 15:13:19 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2012-04-30 15:13:19 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2012-04-30 15:13:25 - Emulator] NAND: could not write file /tmp/android-jhsu/emulator-7iTL7m, File exists
究竟是什么阻止了进程正常执行?我需要做什么来解决这个问题?
更新 1:
好的,我尝试了你关于清除 avd 的建议。
我进入我的 android_sdk_linux 目录并输入“tools/android list avd”。输出是:
Available Android Virtual Devices:
Name: my_avd
Path: /home/jhsu/.android/avd/my_avd.avd
Target: Android 4.0.3 (API level 15)
ABI: armeabi-v7a
Skin: WVGA800
所以我输入了“tools/emulator -avd my_avd -wipe-data”。输出是:
NAND: could not write file /tmp/android-jhsu/emulator-5FHEn7, File exists
但是我查看了 /tmp/android-jhsu 目录并没有看到任何文件,甚至没有隐藏文件。
我从这里去哪里?
【问题讨论】:
-
可能你的模拟器磁盘镜像空间不足,例如stackoverflow.com/a/5605025/180740?
-
删除你的模拟器然后再创建一个