官方Android开发人员教程中的Hello World项目中的NAND错误 [英] NAND error in Hello World project in the official Android developer tutorial
问题描述
我正在通过 http:// developer进行Hello World项目。 android.com/resources/tutorials/hello-world.html
运行应用程序时会遇到麻烦。我收到的消息顺序如下:
The trouble comes when I run the application. The sequence of messages I get is something like:
[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
到底是什么导致进程无法正常执行?我需要做些什么来解决此问题?
What exactly is stopping the process from executing properly? What do I need to do to fix this?
更新1:
好的,我尝试了您的建议
OK, I tried your suggestions about clearing the avd.
我进入android_sdk_linux目录并输入 tools / android list avd。输出为:
I went into my android_sdk_linux directory and entered "tools/android list avd". The output was:
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
所以我输入了工具/仿真器-avd my_avd -wipe-data。输出为:
So I entered "tools/emulator -avd my_avd -wipe-data". The output was:
NAND: could not write file /tmp/android-jhsu/emulator-5FHEn7, File exists
但是我查看了/ tmp / android-jhsu目录,发现根本没有文件,甚至没有隐藏文件
But I looked in the /tmp/android-jhsu directory and saw no file at all, not even a hidden file.
我从这里去哪里?
推荐答案
能够解决它的出口 ANDROID_TMP
export ANDROID_TMP=/home/myuser
这篇关于官方Android开发人员教程中的Hello World项目中的NAND错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!