Ubuntu 16.04编译Android 源码 需要的库

这篇博客详细列出了在Ubuntu 16.04上编译Android源码所需的全部库,包括git、gnupg、flex等,并针对可能出现的mingw32安装问题提供了解决方案,如更新源列表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

       sudo apt-get install git -y
        sudo apt-get install gnupg -y
        sudo apt-get install flex -y
        sudo apt-get install bison -y
        sudo apt-get install gperf -y
        sudo apt-get install build-essential -y
        sudo apt-get install zip -y
        sudo apt-get install curl -y
        sudo apt-get install libc6-dev -y
        sudo apt-get install libncurses5-dev:i386 -y
        sudo apt-get install x11proto-core-dev -y
        sudo apt-get install libx11-dev:i386 -y
        sudo apt-get install libreadline6-dev:i386 -y
        sudo apt-get install g++-multilib -y
        sudo apt-get install mingw32 -y(可能会报 reading state information ... Done E: Unable to locate package mingw32)
        sudo apt-get install tofrodos -y
        sudo apt-get install python-markdown -y
        sudo apt-get install libxml2-utils -y
        sudo apt-get install xsltproc -y
        sudo apt-get install zlib1g-dev:i386 -y

如果更新sudo apt-get install mingw32 报错Unable to locate package mingw32 

可以使用如下方法解决 sudo gedit /etc/apt/sources.list  deb http://us.archive.ubuntu.com/ubuntu trusty main universe 

更新源后,就可以安装了

  1. sudo apt-get update

  2. sudo apt-get install mingw32

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值