- 浏览: 12894760 次
- 性别:
- 来自: 大连
文章分类
最新评论
-
sanrenxing_1:
GoEasy 实时推送支持IE6-IE11及大多数主流浏览器的 ...
WindowsPhone消息推送服务 -
张砚辉:
两侧照片绕Y轴旋转后有锯齿,请问锯齿解决方案,很长时间没解决
自定义带倒影和偏转的超炫Gallery -
knight_black_bob:
能不能把你自己的博客整理下分类下,写了这么多 ,都不知道怎么查 ...
Android_View,ViewGroup,Window之间的关系 -
jeasonyoung:
你这个代码实现在iOS8下应该是滑不动的
UISlider 滑块控件—IOS开发 -
wx_hello:
如果能写个可运行的java程序,不胜感激。。。
rs232串口通信原理
在Ubuntu上下载、编译和安装Android最新源代码(包括网友问答)
看完了前面说的几本书之后,对Linux Kernel和Android有一定的认识了,是不是心里蠢蠢欲动,想小试牛刀自己编译一把Android源代码了呢?一直习惯使用Windows系统,而Android源代码是不支持在Windows上编译上,于是决定使用虚拟机安装Ubuntu,然后下载、编译和安装Android源代码。
一. 环境准备。
1. 磁盘空间预留20G左右,内存3G,因为一边要跑主机,一边要跑虚拟机,内存要求还是比较高的,这样才会比较流畅。
2. 安装VMWare 7.1.4。我的操作系统是Win7,VMWare的版本要新一点的,旧版本的VMWare在网络支持上比较差,由于要在虚拟机上下载Android源代码,没有网络是万万不行的。
3. 安装好VMWare后,接下来就安装Ubuntu系统了。我选择目前最新的版本ubuntu-11.04-alternate-i386,从网上查到的资料说,要编译Android源代码,Ubuntu的最低版本是8.04。下载好后,安装时采用一直默认安装即可。
4. 安装Git工具。Android源代码采用Git工具来管理,与SVN相比,这是一种分布式的源代码管理工具,而SVN是集中式的源代码管理工具。要安装Git工具,在Ubuntu上执行以下命令即可:
USER-NAME@MACHINE-NAME:~$ sudo apt-get installgit-core gnupg
5. 安装Java SDK。在Ubuntu上执行以下命令:
USER-NAME@MACHINE-NAME:~$
sudo add-apt-repository ppa:ferramroberto/java
USER-NAME@MACHINE-NAME:~$
sudo apt-get update
USER-NAME@MACHINE-NAME:~$
sudo apt-get install sun-java6-jre sun-java6-plugin
USER-NAME@MACHINE-NAME:~$
sudo apt-get install sun-java6-jdk
6. 依赖的其它包。在Ubuntu上执行以下命令:
USER-NAME@MACHINE-NAME:~$sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
7. 调试工具。在Ubuntu上执行以下命令:
USER-NAME@MACHINE-NAME:~$sudo apt-get install valgrind
二. 下载Android源代码工程。
1. 下载repo工具。在Ubuntu上执行以下命令:
USER-NAME@MACHINE-NAME:~$chmod 777 repo
USER-NAME@MACHINE-NAME:~$cp repo /bin/
2. 下载Android最新版本源代码。在Ubuntu上执行以下命令:
USER-NAME@MACHINE-NAME:~$mkdir Android
USER-NAME@MACHINE-NAME:~$cd Android
USER-NAME@MACHINE-NAME:~/Android$repo init -u git://android.git.kernel.org/platform/manifest.git
USER-NAME@MACHINE-NAME:~/Android$repo sync
经过漫长的等待(我下载了两三天)后,就可以把Android源代码下载下来了。其间可能还有经历下载中断的情况,这时只要重新执行repo sync就可以了。
三. 编译Android源代码。
1. 编译。在Android目录下执行以下命令:
USER-NAME@MACHINE-NAME:~/Android$ make
第一次编译要等待比较久的时间,编译成功后,可以看到下面的输出:
Target system fs image: out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img
Install system fs image: out/target/product/generic/system.img
Target ram disk: out/target/product/generic/ramdisk.img
Target userdata fs image: out/target/product/generic/userdata.img
Installed file list: out/target/product/generic/installed-files.txt
2. 编译过程中可能会遇到的问题。
问题一:You are attempting to build on a 32-bit system.
两个地方需要个修改:
1)修改build/core目录下的main.mk文件:
ifeq ($(BUILD_OS),linux)
build_arch := $(shell uname -m)
#Change the following line for building on a 32-bit system.
#ifneq (64,$(findstring 64,$(build_arch)))
ifneq (i686,$(findstring i686,$(build_arch)))
$(warning ************************************************************)
$(warning You are attempting to build on a 32-bit system.)
$(warning Only 64-bit build environments are supported beyond froyo/2.2.)
2)找到下列文件:
/external/clearsilver/cgi/Android.mk
/external/clearsilver/cs/Android.mk
/external/clearsilver/java-jni/Android.mk
/external/clearsilver/util/Android.mk
修改LOCAL_CFLAGS和LOCAL_LDFLAGS变量:
# This forces a 64-bit build for Java6
# Change the following two lines for building on a 32-bit system.
# LOCAL_CFLAGS += -m64
# LOCAL_LDFLAGS += -m64
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
问题二:Undefined reference to `__dso_handle'
external/stlport/src/monetary.cpp:39: undefined reference to `__dso_handle'
out/target/product/vm/obj/SHARED_LIBRARIES/libstlport_intermediates/src/locale.o: In function `__static_initialization_and_destruction_0':
external/stlport/src/locale.cpp:29: undefined reference to `__dso_handle'
out/target/product/vm/obj/SHARED_LIBRARIES/libstlport_intermediates/src/locale_impl.o: In function `__static_initialization_and_destruction_0':
external/stlport/src/locale_impl.cpp:31: undefined reference to `__dso_handle'
out/target/product/vm/obj/SHARED_LIBRARIES/libstlport_intermediates/src/locale_impl.o: In function `std::_Locale_impl::make_classic_locale()':
external/stlport/src/locale_impl.cpp:670: undefined reference to `__dso_handle'
external/stlport/src/locale_impl.cpp:667: undefined reference to `__dso_handle'
out/target/product/vm/obj/SHARED_LIBRARIES/libstlport_intermediates/src/locale_impl.o:external/stlport/src/locale_impl.cpp:604: more undefined
references to `__dso_handle' follow
collect2: ld returned 1 exit status
修改external/stlport/dll_main.cpp,加入以下声明:
extern "C" {
void * __dso_handle = 0;
}
四. 编译SDK,这一步是可选的。
1. 编译。执行以下命令:
USER-NAME@MACHINE-NAME:~/Android$make sdk
2.编译过程中可能会遇到的问题。
问题一:找不到bios.bin和vgabios-cirrus.bin文件
couldn't locate source file: usr/share/pc-bios/bios.bin
couldn't locate source file: usr/share/pc-bios/vgabios-cirrus.bin
注意,这里的usr/share目录指的是~/Android/out/host/linux-x86目录下的usr/share目录,修改办法是复制~/Android/prebuilt/common下的pc-bios文件夹到~/Android/out/host/linux-x86/usr/share即可:
USER-NAME@MACHINE-NAME:~/Android$cp ~/Android/prebuilt/common/pc-bios ~/Android/out/host/linux-x86/usr/share
问题二:找不到ddmlib-tests.jar、 ninepath-tests.jar 、common-tests.jar 和sdkuilib-tests.jar文件
在~/Android/out/host/linux-x86/framework这个目录下,可以找到以下几个文件common.jar、ddmlib.jar、ninepatch.jar、sdkuilib.jar这四个文件,然后将它们分别复制一份,并重命名,命名的原则很简单,就是在原有的名字后面跟上-tests即可。
五. 安装编译好的Android镜像到模拟器上。
1. 设置环境变量:
USER-NAME@MACHINE-NAME:~/Android$export PATH=$PATH:~/Android/out/host/linux-x86/bin
USER-NAME@MACHINE-NAME:~/Android$export ANDROID_PRODUCT_OUT=~/Android/out/target/product/generic
其中,~/Android/out/host/linux-x86/bin有我们要执行的emulator命令,而~/Android/out/target/product/generic是Android镜像存放目录,下面执行emulator命令时会用到。
2. 运行模拟器。
USER-NAME@MACHINE-NAME:~/Android$emulator
模拟器运行需要四个文件,分别是Linux Kernel镜像zImage和Android镜像文件system.img、userdata.img和ramdisk.img。执行emulator命令时,如果不带任何参数,则Linux Kernel镜像默认使用~/Android/prebuilt/android-arm/kernel目录下的kernel-qemu文件,而Android镜像文件则默认使用ANDROID_PRODUCT_OUT目录下的system.img、userdata.img和ramdisk.img,也就是我们刚刚编译出来的镜像问题。
当然,我们也可以以指定的镜像文件来运行模拟器,即运行emulator时,即:
USER-NAME@MACHINE-NAME:~/Android$emulator -kernel ./prebuilt/android-arm/kernel/kernel-qemu -sysdir ./out/target/product/generic -system system.img -data userdata.img -ramdisk ramdisk.img
到这里,我们就可以在模拟器上运行我们自己编译的Android镜像文件了,是不是很酷呢?但是注意,这里说的Android镜像文件,只是包括system.img、userdata.img和ramdisk.img这三个文件,而Linux Kernel镜像用的是Android为我们预编译好的kernel-qemu镜像。那么,有没有办法使用我们自己编译的Linux Kernel镜像呢?答案上肯定的,这样我们就可以完全DIY自己的Android系统了!我将在下一篇文章描述如果编译自己的Linux
Kernel镜像,敬请期待~
PS:主线上最新源代码是不稳定版本,使用过程可能会有问题
Android 编译时:出现以下错误:
Install: out/host nux-x86/bin/apicheck
Checking API: checkapi-last
(unknown): error 7: Removed package android.telephony.cdma
(unknown): error 7: Removed package android.telephony.gsm
(unknown): error 8: Removed public class android.telephony.CellLocation
(unknown): error 8: Removed public class android.telephony.NeighboringCellInfo
(unknown): error 8: Removed public class android.telephony.PhoneNumberFormattingTextWatcher
(unknown): error 8: Removed public class android.telephony.PhoneNumberUtils
(unknown): error 8: Removed public class android.telephony.PhoneStateListener
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
make: *** [out/target/common/obj/PACKAGING checkapi-last-timestamp] Error 38
请楼主帮忙看一下怎么排除?
这个问题有几天没有解了,急呀,请楼主帮忙看一下怎么排除?
EMAIL : yunmn2007@126.com
Android 编译时:出现以下错误:
Install: out/host nux-x86/bin/apicheck
Checking API: checkapi-last
(unknown): error 7: Removed package android.telephony.cdma
(unknown): error 7: Removed package android.telephony.gsm
(unknown): error 8: Removed public class android.telephony.CellLocation
(unknown): error 8: Removed public class android.telephony.NeighboringCellInfo
(unknown): error 8: Removed public class android.telephony.PhoneNumberFormattingTextWatcher
(unknown): error 8: Removed public class android.telephony.PhoneNumberUtils
(unknown): error 8: Removed public class android.telephony.PhoneStateListener
(unknown): error 8: Removed public class android.telephony.SmsManager
******************************
You have tried to change the API from what has been previously released in
an SDK. Please fix the errors listed above.
******************************
make: *** [out/target/common/obj/PACKAGING checkapi-last-timestamp] Error 38
请楼主帮忙看一下怎么排除?
out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/gr_iface.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile] Error 1
这是什么意思
很急,请问我编译出了这个错误是什么意思,怎么解决
$ mkdir ~/bin
$ PATH=~/bin:$PATH //这里要设置路径
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
至于下载不了的上官网看看吧,我也在网上搜索了好多地址,最后在官网找到了
关于 repo官网详细解析http://source.android.com/source/downloading.html
我编译的时候碰见下面这个错误,几天了一直解决不了,也查不到,请问博主这是什么错误?? 后面的评论都看了,没有看到跟我一样的错误!
collect2: ld terminated with signal 7 [Bus error]
collect2: ld terminated with signal 7 [Bus error]
--2012-03-07 21:45:50-- http://android.git.kernel.org/repo
Resolving android.git.kernel.org... 149.20.4.77
Connecting to android.git.kernel.org|149.20.4.77|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://android.googlesource.com/repo [following]
--2012-03-07 21:45:51-- http://android.googlesource.com/repo
Resolving android.googlesource.com... 74.125.71.82
Connecting to android.googlesource.com|74.125.71.82|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-03-07 21:45:52 ERROR 404: Not Found.
repo安装不上,怎么回事啊?罗哥给我发一下吧:buaaroid@163.com
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] 错误 1
make: *** 正在等待未完成的任务....
注意:某些输入文件使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
注意:某些输入文件使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
注意:某些输入文件使用或覆盖了已过时的 API。
注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] 错误 1
make: *** 正在等待未完成的任务....
注意:某些输入文件使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
注意:某些输入文件使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
注意:某些输入文件使用或覆盖了已过时的 API。
注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
博主,总是出现这个问题,解决不了,无法编译。求指教
wo shi yong sudo apt-get install git-core gnupg
bao cuo
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnupg is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git-core: Depends: liberror-perl but it is not installable
Depends: libdigest-sha1-perl but it is not installable
Recommends: patch but it is not installable
E: Broken packages
qing wen zen me jie jue ?? xie xie
li@li-laptop:~/android_data/source-android/4.0android$ emulator -kernel kernel/goldfish/arch/arm/boot/zImage -sysdir ./out/target/product/generic -system system.img -data userdata.img -ramdisk ramdisk.img
emulator: WARNING: system partition size adjusted to match image file (168 MB > 66 MB)
qemu: could not load initrd 'ramdisk.img'
提示:qemu: could not load initrd 'ramdisk.img'
我运行的是 android4.0版本
make: *** 没有规则可以创建“out/host/linux-x86/obj/EXECUTABLES/etc1tool_intermediates/etc1tool”需要的目标“out/host/linux-x86/obj/STATIC_LIBRARIES/libETC1_intermediates/libETC1.a”。 停止。
这个是怎么回事啊?
您的文章写得非常好,先顶一个。
我在ubuntu上编译出错了:
out/target/product/generic/obj/STATIC_LIBRARIES/libext_intermediates/libxt_dscp.c:18:37: error: linux/netfilter/xt_dscp.h: No such file or directory
我有几个问题,麻烦您一下:
1.libxt_dscp.c 中#include linux/netfilter/xt_dscp.h这句中的xt_dscp.h指的是哪个?(我ubuntu中的还是kernel里的?)
2.这个错误的解决方法
3. 能否讲一下整个编译过程所经历的步骤
谢谢您
2. 在Android源代码目录下搜索一下,看看能不能找到这个文件;
3. 编译步骤文章已经讲得比较清楚了,如果有问题,可以看看文章后面的评论,参考一下其它网友遇到的问题。
我的环境是:vmware+ubuntu32+jdk1.5+android2.2,编译已经成功。但运行emulator报错。错误是:SDL init failure,reason is:No abailable video device
我在Linux下编译通过,但是我不想用虚拟机,就在windows下启动SDK中的emulator.exe命令,参数设置一样,出现错误emulator: ERROR: Cannot find system image file: system.img,请问怎么回事?谢谢!
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
能帮我看看是怎么回事吗?
framework/policies/base/PolicyConfig.mk:19:** PRODUCT_POLICY MUST be defined. . Stop
是什么原因呢?
参考一下这篇文章看看http://www.linuxidc.com/Linux/2011-05/35891.htm
http://blog.csdn.net/rambo2188/article/details/6943382
没有碰到什么问题,一点没有成就感啊。
Unable to access jarfile /framework/apicheck.jar
同时有这样的提示
******************************
You have tried to change the API from what has been previously released in an SDK. Please fix the errors listed above.
******************************
在我的/out/host/linux-x86/framework里已经有了这个jar文件,我在网上搜了好长时间了,没找到合适的答案,能否帮忙解答一下,谢谢
Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
时发生的
sudo: add-apt-repository : command not found
是不是命令拼写有问题啊?
编译源代码时出现这个问题,请问楼主怎么解决?
1. 网上找资料看看能不能找到解决的办法;
2. 试着多repo sync几次,看看能不能把新的代码更新下来,这个有时候就要看人品了;
3. 如果前面两个办法都行不通,那就在repo init -u git://android.git.kernel.org/platform/manifest.git命令后面加上-b选项来下载稳定的分支吧。
unknown option: -partition
please use -help for a list of valid options
另外,你也可以尝试一下用-kernel选项指定用kernel-qemu文件作为内核镜像启动emulator,看看有没有问题。
请问楼主,无法访问,没办法安装repo,该如何解决。
ftcaicai@gmail.com
https://www.codeaurora.org/gitweb/quic/la/?p=kernel/common.git;a=summary。
2. 下载说明在这里:
https://www.codeaurora.org/xwiki/bin/QAEP/
请问下使用 repo sync 出现
android.git.kernel.org[0: 199.6.1.173]: errno=Connection refused
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
。。。
fatal: unable to connect a socket (Network is unreachable)
error: Cannot fetch platform/bionic
会是什么问题呀,网络是好的,可以正常浏览网页!
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
Otherwise, follow the instructions in -help-disk-images to start the emulator
五. 安装编译好的Android镜像到模拟器上
后面如果不带参数,就要设置好环境变量
我在“安装编译好的Android镜像到模拟器上。”环节上出现这个问题
请问下这个是哪个环节出问题了。
请问要怎么解决。谢谢
我现在出了一个新问题
emulator: WARNING: system partition size adjusted to match image file (97 MB > 66 MB)
netPipe_initTcp: Port is '22468'
netPipe_initFromAddress: Could not connect to socket: Connection refused
段错误
请问这种情况是什么引起的
要怎么处理? 谢谢
netPipe_initTcp: Port is '22468'
netPipe_initFromAddress: Could not connect to socket: Connection refused
“不小心”来回答你们的问题。解决这个问题。
一、这是问题原因是system.img有问题。把这个system.img用别的替换即可。可是这样一来就没有编译的意义所在了。
二、问题根源在于,你们不应该下载这个分支:~/Android$ repo init -u git://android.git.kernel.org/platform/manifest.git
因为这是最新的源码,最新的肯定不是最好的,很多功能可能不稳定不完善。而且天天更新,也许你昨天下载的可以用,今天下载的有问题都是有可能的。
所以很可能是楼主下载的时候没有问题,而你们下载的时候有问题。刚出来的源码系统兼容性也没有保障,出问题更是没人可解。
所以你们去下载一个andriod2.3比较稳定的分支就可以了。比如说:android2.3.4。去网上搜索一下git分支,下载即可。可是最近好像谷歌闹问题,源码老是下载不了。好事做好底,贴上一个源码链接,可以参考。我已经验证,编译OK。(有问题可按照楼主文章修改)
http://zhuwenhao.com/831/%E6%8A%80%E6%9C%AF/%E8%87%AA%E7%94%B1%E8%BD%AF%E4%BB%B6%E7%A4%BE%E5%8C%BA/android/android-2-3-gingerbread-%E5%8E%9F%E7%89%88%E6%BA%90%E4%BB%A3%E7%A0%81%E5%8E%8B%E7%BC%A9%E5%8C%85%E4%B8%8B%E8%BD%BD/
此代码已经打包好,直接下载后,解压即可。(如果是虚拟机,请不要先解压再拷进虚拟机,应该拷进虚拟机再解压。)
netPipe_initTcp: Port is '22468'
netPipe_initFromAddress: Could not connect to socket: Connection refused
分别是在external/qemu/android/hw-pipe-net.c文件里面的netPipe_initTcp和netPipe_initFromAddress两个函数里面
我报的错怎么跟你们的都不一样阿
build/core/base_rules.mk:103: *** user tag detected on new module - user tags are only supported on legacy modules。 停止。
不知道 博主 见没见过 我用的是 ubuntu11.4
build/core/base_rules.mk:162: *** platform/bionic/libc: MODULE.TARGET.STATIC_LIBRARIES.libc_common already defined by bionic/libc。 停止。
楼主知道么?
真的很想跟 楼主 走下去阿。。
find: `frameworks/base/frameworks/base/docs/html': 没有那个文件或目录
find: `out/target/common/docs/gen': 没有那个文件或目录
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes.jar
Copy: dx (out/host/linux-x86/obj/EXECUTABLES/dx_intermediates/dx)
Install: out/host/linux-x86/bin/dx
target Dex: core
如果说是代码取得不完整,我再重新repo sync,却又没有错误,提示如下,
Fetching projects: 100% (183/183), done.
Syncing work tree: 100% (183/183), done.
所以,编译android错误是为什么?
你看一下编译的最后有没有下面的输出:
Target system fs image: out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img
Install system fs image: out/target/product/generic/system.img
Target ram disk: out/target/product/generic/ramdisk.img
Target userdata fs image: out/target/product/generic/userdata.img
Installed file list: out/target/product/generic/installed-files.txt
或者你进入out/target/product/generic目录,看看有没有system.img、ramdisk.img和userdata.img这三个文件
frameworks/base/core/res/res/values/public.xml:647: warning: No comment for public symbol android:style/Widget.TextView.SpinnerItem
frameworks/base/core/res/res/values/public.xml:656: warning: No comment for public symbol android:style/Widget.WebView
target Java: framework (out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes)
注意:某些输入文件使用或覆盖了已过时的 API。
注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
注意:某些输入文件使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
Copying: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes.jar
target Dex: framework
#
# SIGSEGV (0xb) at pc=0x40229ef1, pid=10783, tid=2837425008
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode linux-x86 )
# Problematic frame:
# V [libjvm.so+0x6eef1] markOopDesc::must_be_preserved_with_bias(oopDesc*) const+0x21
#
# An error report file with more information is saved as:
# /home/android/android4.0/hs_err_pid10783.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
注意:某些输入文件使用或覆盖了已过时的 API。
注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
make: *** [out/host/common/obj/JAVA_LIBRARIES/core-hostdex_intermediates/classes.dex] 已放弃
楼主,又有新问题了,还是编译不了,求帮忙
make: *** [out/target/common/docs/doc-comment-check-timestamp] 错误 45
make: *** 正在等待未完成的任务....
我用的ubuntu11.04 32位的
下载的 是 android4.0.1 r1 的 源码
frameworks/base/core/res/res/values/public.xml:650: warning: No comment for public symbol android:style/Widget.ScrollView
frameworks/base/core/res/res/values/public.xml:637: warning: No comment for public symbol android:style/Widget.SeekBar
frameworks/base/core/res/res/values/public.xml:645: target Dex: framework
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] 已杀死
楼主,我也有同样的问题啊。 编译不过,这是 什么问题。求指教
target Dex: framework照着 官网 上的 步骤 编译 不过
上面的 问题老出现,结果就这样了
host C: libSR_Core <= external/srec/srec/ca/../cfront/spec_anl.c
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] 已杀死
make: *** 正在等待未完成的任务....
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=3.1.4.1.5.9.2.6.5
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
============================================
find: `frameworks/base/frameworks/base/docs/html': 没有那个文件或目录
find: `out/target/common/docs/gen': 没有那个文件或目录
find: `frameworks/base/frameworks/base/docs/html': 没有那个文件或目录
find: `out/target/common/docs/gen': 没有那个文件或目录
find: `frameworks/base/frameworks/base/docs/html': 没有那个文件或目录
find: `out/target/common/docs/gen': 没有那个文件或目录
find: `frameworks/base/frameworks/base/docs/html': 没有那个文件或目录
再修改权限,执行以下两句
USER-NAME@MACHINE-NAME:~$ chmod 777 repo
USER-NAME@MACHINE-NAME:~$ cp repo /bin/
为什么提示,cp:无法创建普通文件, /bin/repo 权限不够???
sudo cp repo /bin/
相关推荐
使用虚拟机安装Ubuntu,然后下载、编译和安装Android源代码
在Ubuntu上下载、编译和安装Android最新内核源代码
在Ubuntu上下载、编译和安装Android最新内核源代码(LinuxKernel).pdf
在Ubuntu10.04下载和编译android 4.0源代码(三)
在Ubuntu10.04下载和编译android 4.0源代码(四)
在Ubuntu上下载、编译和安装Android最新内核源代码
在Ubuntu10.04下载和编译android 4.0源代码(一)
ubuntu 安装,android4源代码下载编译全过程
在Ubuntu10.04下载和编译android 4.0源代码(五)
在Ubuntu10.04下载和编译android 4.0源代码(一)
一直习惯使用Windows系统,而Android源代码是不支持在Windows上编译上,于是决定使用虚拟机安装Ubuntu,然后下载、编译和安装Android源代码。 一. 环境准备。 1. 磁盘空间预留20G左右,内存3G,因为一边要跑主机...
ubuntu12.04编译android4.1.1_r6源代码步骤定义.pdf
Ubuntu系统中下载并编译Android源代码.pdf
ubuntu12.04编译android4.1.1_r6源代码步骤.docx
ubuntu12.04编译android4.1.1_r6源代码步骤.pdf
ubuntu12.04编译android4.1.1_r6源代码步骤[归类].pdf
本文主要介绍Android源码的下载和编译,这里整理了相关资料及如何下载和编译的详细步骤,有需要的小伙伴可以参考下
首选,参照前一篇在Android源码 在Ubuntu上下载,编译和安装准备好Android源代码目录。 二. 下载Linux Kernel for Android源代码。 1. 使用GIT工具下载,执行以下命令: USER-NAME@MACHINE-NAME
NULL 博文链接:https://hualang.iteye.com/blog/1132207