模拟器:错误:您的构建目录中没有用户数据图像.请做一个完整的构建 [英] emulator: ERROR: There is no user data image in your build directory. Please make a full build
问题描述
我正在做 android 开源项目,我是 aosp 的新手.我正在 Ubuntu 14.04 64 位中构建姜饼.
I'm doing android open source project and I'm new to aosp. I am building gingerbread in Ubuntu 14.04 64-bit.
我已经成功地编译了源代码,没有出现任何错误,现在当我运行命令模拟器"时,出现以下错误并且我的模拟器根本没有运行
I have managed to successfully compile the source code without any error, and now when I run the command 'emulator', I get the following error and my emulator is not running at all
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
我在互联网上搜索,但没有找到有类似问题的人.那么,有人有什么想法吗?可能的解决方案是什么?
I searched over the internet and was not able to find a guy with the similar problem. So, anyone have any idea? What could be the possible solution ?
我的 out 目录和 userdata-qemu.img 被锁定了!这不寻常吗??
My out directory and userdata-qemu.img is locked! Is this unusual ??
提前致谢.
推荐答案
我认为您的文件已被锁定...可能是您从其他用户那里复制了一些文件.确保为所有文件授予一定的权限.
I think your file is locked... may be you copied some files from another user. Make sure you give the all your files some permissions.
cd 从你的 aosp 根目录后退一步并使用这个命令
cd one step back from your aosp root directory and use this command
chmod -Rv 755 youraospdirectory/
我遇到了类似的问题,但就我而言,整个目录都是问题所在.所以最好chmod整个目录.
I had similar issues, but in my case the whole directory was the problem. So it would be better to chmod the whole directory.
这篇关于模拟器:错误:您的构建目录中没有用户数据图像.请做一个完整的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!