记一次适配MIUI报错

2015年4月27日 5692点热度 0人点赞 0条评论

Build apkcerts.txt
3679 KB/s (390469 bytes in 0.103s)
python: can't open file '/tools/apkcerts.py': [Errno 2] No such file or directory
../tools/releasetools/ota_target_from_phone: 行 163: /home/nanguoyu/patchrom/nx507j/out/target_files/META/apkcerts.txt: 没有那个文件或目录
../tools/releasetools/ota_target_from_phone: 行 163: /home/nanguoyu/patchrom/nx507j/out/target_files/META/apkcerts.txt: 没有那个文件或目录
../tools/releasetools/ota_target_from_phone: 行 165: /home/nanguoyu/patchrom/nx507j/out/target_files/META/temp.txt: 没有那个文件或目录
cat: /home/nanguoyu/patchrom/nx507j/out/target_files/META/apkcerts.txt: 没有那个文件或目录
mv: 无法获取"/home/nanguoyu/patchrom/nx507j/out/target_files/META/temp.txt" 的文件状态(stat): 没有那个文件或目录
Generate metadata used to build target files...
cp: 无法获取"/home/nanguoyu/patchrom/nx507j/out/target_files/META/apkcerts.txt" 的文件状态(stat): 没有那个文件或目录
cp: 无法获取"/home/nanguoyu/patchrom/nx507j/out/target_files/META/filesystem_config.txt" 的文件状态(stat): 没有那个文件或目录
cp: 无法获取"/home/nanguoyu/patchrom/nx507j/out/target_files/RECOVERY/RAMDISK/etc/recovery.fstab" 的文件状态(stat): 没有那个文件或目录
Compress the target_files dir into zip file
/home/nanguoyu/patchrom/nx507j
Build full ota package: /home/nanguoyu/patchrom/nx507j/stockrom.zip
../tools/releasetools/ota_target_from_phone: 行 256: /tools/releasetools/ota_from_target_files: 没有那个文件或目录

适配时突然遇到如上问题,试了几次都不成功,正发愁呢,突然想起来没给一个sh权限呀。果断,chmod a+x envsetup.sh

Dong Wang

Master student of computer science at Uppsala University in Sweden. My primary research interests are deep learning, computer vision, federated learning and internet-of-things.

文章评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据