AOSP Android在Mac上编译源代码

时间:2017-04-22 08:09:35

标签: android compilation android-source

根据Android指南:
1.下载回购 2. repo init
3.回购同步
我在磁盘中获得了Android 7.1.1的源代码 午餐组合时出现了问题

You're building on Darwin

Lunch menu... pick a combo:
 1. aosp_arm-eng
 2. aosp_arm64-eng
 3. aosp_mips-eng
 4. aosp_mips64-eng
 5. aosp_x86-eng
 6. aosp_x86_64-eng
 7. full_fugu-userdebug
 8. aosp_fugu-userdebug
 9. mini_emulator_arm64-userdebug
 10. m_e_arm-userdebug
 11. m_e_mips-userdebug
 12. m_e_mips64-eng
 13. mini_emulator_x86-userdebug
 14. mini_emulator_x86_64-userdebug
 15. aosp_dragon-userdebug
 16. aosp_dragon-eng
 17. aosp_marlin-userdebug
 18. aosp_sailfish-userdebug
 19. aosp_flounder-userdebug
 20. aosp_angler-userdebug
 21. aosp_bullhead-userdebug
 22. hikey-userdebug
 23. aosp_shamu-userdebug

Which would you like? [aosp_arm-eng] 
-bash: Saving: command not found
-bash: ...saving: command not found
-bash: ...completed.: command not found

** Don't have a product spec for: 'aosp_arm'
** Do you have the right repo manifest?

OSX:10.11.6
JDK:1.8.0_101
的Xcode 8.2.1

我不确定如何处理它。
谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

每个午餐组合都在device/company_name/device_name/device.mk内定义产品规格。对于E.g device/moto/shamu/device.mk是为 Nexus 6 定义的。

  

**没有产品规格:' aosp_arm'

     

**你有正确的回购清单吗?

正如错误所述,没有为& aosp_arm'

定义产品规格

有关详细信息,请参阅Adding a new Device