我在编译 Android 的源代码后运行了以下命令,但出现了错误。
#fastboot -w flashall
error: could not load android-info.txt
我已经成功地为Nexus One (build 5)构建了源代码,并发现在目录out/target/passion/中有一个android-info.txt文件。
此外,我确定手机已连接。当我运行"fastboot devices"时,它显示设备。
有人知道原因吗?
我在编译 Android 的源代码后运行了以下命令,但出现了错误。
#fastboot -w flashall
error: could not load android-info.txt
我已经成功地为Nexus One (build 5)构建了源代码,并发现在目录out/target/passion/中有一个android-info.txt文件。
此外,我确定手机已连接。当我运行"fastboot devices"时,它显示设备。
有人知道原因吗?
很抱歉重新激活了旧帖子,但它仍然是热门搜索之一且没有答案。我的解决方法是确保设置了ANDROID_PRODUCT_OUT环境变量,并且指向/home/{usr name}/{build directory}/out/target/product/{taget}
再次抱歉让这篇已停止讨论的帖子重生。
/home/{usr name}/{build directory}/out/target/product/{taget}
要设置ANDROID_PRODUCT_OUT
,我们只需要执行以下操作:
source build/envsetup.sh
lunch
fastboot flashall -w
知道您想要刷入哪个产品。调用lunch命令来设置所需的环境变量。 例如,可以调用'lunch aosp_flo-eng'来确保Nexus 7 [2013]平板电脑的环境是正确的。