linux下android 编译
来源:互联网 发布:spec什么软件 编辑:程序博客网 时间:2024/06/03 02:26
一、android 编译常见报错:
1. API 过期
终端输入命令: make update-api
2. xxx命令未找到。
解决方法:将此命令连接到 /bin 目录
实例: 报错:/bin/bash: jar: 未找到命令 终端输入命令:which -a jar /*查看jar的安装位置*/ 终端显示结果:/usr/lib/jvm/java/jdk1.6.0_38/bin/jar终端输入命令:sudo ln -s /jdk1.6.0_21/bin/jar /bin/jar /*将jar链接到/bin*/ 3. 没有权限打开某些文件这个文件一般都是/out 目录的,也就是说这应该是用sudo make 进行编译导致的。 解决方法:删除这个文件,使用make重新编译 4. In file included from externalromium_org/content/common/android/hash_set.cc:5:0: cc1plus: all warnings being treated as errors make: *** [out/target/product/xxx/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] 错误 1导致此问题的原因就是在ubuntu每天弹出的更新时选择了默认全部更新,导致原先系统自带的openjdk又安装上了,并且变成了默认的java 解决方法:java问题,分别使用下面命令选择你安装的JDK >>sudo update-alternatives --config java >>sudo update-alternatives --config javac >>sudo update-alternatives --config javap >>sudo update-alternatives --config javah 先make clean,再重新编译 参考 http://blog.csdn.net/ameyume/article/details/28855723
二、编译某个apk: 以修改CIT菜单为例: 1. 修改device/qcom/br01/overlay/packages/odm/apps/Tools/res/values/config_cit.xml 2. 在根目录下配置好编译环境 3. >>make clean-Tools >>make Tools -j4 4.倒入手机: >>adb push Tools.apk /system/app
0 0
- linux下android 编译
- Linux 下编译Android
- 在linux下编译Android
- Linux下android内核编译
- Linux下编译Android源码
- linux 下 android编译全过程
- Linux下android内核编译
- Linux下android内核编译
- Linux下android内核编译
- Linux下android内核编译
- Linux 下编译Android应用程序
- android linux下编译问题
- linux 下makefile 编译 Android
- Ubuntu下编译android的linux内核
- Linux下编译android源码的步骤
- Linux下编译Android Windows SDK
- Linux下编译android源码的步骤
- linphone-android在linux下编译
- VMware虚拟机CentOS6.3出现yum安装出错
- Linux字符设备驱动编写基本流程
- cocos2d-x之道~制作第一款文字游戏(一)
- Codeforces 416C Booking System(贪心)
- hadoop 自定义排序
- linux下android 编译
- Codeforces 416B Art Union(贪心)
- Balanced Binary Tree -- LeetCode
- hdu2066一个人的旅行
- HuNan Province Multi-School Competition(2014-04-13) Problem K-Cliff Walk Solution
- n-1 数
- 文件编码检测
- OC中的init怎么用及注意方法
- Codeforces 416A Guess a number!(水题)