Android emulator emulator:错误:生成目录中没有用户数据映像。请做一个完整的构建

Android emulator emulator:错误:生成目录中没有用户数据映像。请做一个完整的构建,android-emulator,android-source,android-2.3-gingerbread,Android Emulator,Android Source,Android 2.3 Gingerbread,我正在做android开源项目,我是aosp的新手。 我正在用Ubuntu 14.04 64位构建姜饼 我成功地编译了源代码,没有任何错误,现在当我运行命令“emulator”时,我得到了以下错误,我的emulator根本没有运行 emulator: WARNING: ignoring locked user data image at /home/hari/Android/aosp/out/target/product/generic/userdata-qemu.img emulator: W

我正在做android开源项目,我是aosp的新手。 我正在用Ubuntu 14.04 64位构建姜饼

我成功地编译了源代码,没有任何错误,现在当我运行命令“emulator”时,我得到了以下错误,我的emulator根本没有运行

emulator: WARNING: ignoring locked user data image at /home/hari/Android/aosp/out/target/product/generic/userdata-qemu.img
emulator: WARNING: Another emulator is running. user data changes will *NOT* be saved
emulator: ERROR: There is no user data image in your build directory. Please make a full build
我在网上搜索,没有找到一个有类似问题的人。有人知道吗?可能的解决办法是什么

编辑: 我的输出目录和userdata-qemu.img被锁定!这不寻常吗


提前谢谢。

我想你的文件被锁定了。。。可能是您从其他用户复制了一些文件。确保您为所有文件授予了一些权限

从aosp根目录返回一步并使用此命令

chmod -Rv 755 youraospdirectory/
我也有类似的问题,但在我的情况下,整个目录就是问题所在。
因此,最好对整个目录进行chmod。

欢迎使用StackOverflow!粘贴源代码或日志时,请将其缩进4个空格,以便获得正确的格式,而无需使用` symbolThanks'作为提示@JohnKiller。我很抱歉,因为这是我在StackOverflowYup中的第一个查询!这就是诀窍。但对我来说,out目录和userdata-qemu.img是问题的根源。我在那里单独使用chmod命令来解决我的案子。