android 源码编译出现的错误

问题描述

android 源码编译出现的错误

xxxxx@compiler:~/xxxx/0313-test-1/0313/packages/xxxx/myTV$ mm -B

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=m201
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-86-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H

OUT_DIR=out

PRODUCT_COPY_FILES device/xxxx/m201/audio_effects.conf:system/etc/audio_effects.conf ignored.
PRODUCT_COPY_FILES device/xxxx/m201/lowmemorykiller.txt:/system/etc/lowmemorykiller.txt ignored.
PRODUCT_COPY_FILES device/xxxx/m201/lowmemorykiller_512M.txt:/system/etc/lowmemorykiller_512M.txt ignored.
No private recovery resources for TARGET_DEVICE m201
make: Entering directory `/mnt/commondata/user/aliontuo/xxxx/0313-test-1/0313'
target R.java/Manifest.java: myTV (out/target/common/obj/APPS/myTV_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgson-2.2.4_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgson-2.2.4_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libotaupdate_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libotaupdate_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-broker-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-broker-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-client-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-client-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-console-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-console-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-jaas-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-jaas-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-kahadb-store-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-kahadb-store-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-openwire-legacy-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-openwire-legacy-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-protobuf-1.1_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-protobuf-1.1_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-spring-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-spring-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-web-5.12.0_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libactivemq-web-5.12.0_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgeronimo-j2ee-management_1.1_spec-1.0.1_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgeronimo-j2ee-management_1.1_spec-1.0.1_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgeronimo-jms_1.1_spec-1.1.1_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgeronimo-jms_1.1_spec-1.1.1_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgeronimo-jta_1.0.1B_spec-1.0.1_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libgeronimo-jta_1.0.1B_spec-1.0.1_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libhawtbuf-1.11_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libhawtbuf-1.11_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libjcl-over-slf4j-1.7.10_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libjcl-over-slf4j-1.7.10_intermediates/javalib.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libslf4j-api-1.7.10_intermediates/classes.jar)
target Prebuilt: myTV (out/target/common/obj/JAVA_LIBRARIES/libslf4j-api-1.7.10_intermediates/javalib.jar)
target Java: myTV (out/target/common/obj/APPS/myTV_intermediates/classes)
Note: packages/amlogic/myTV/src/com/justek/mytv/entity/FileSelector.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying: out/target/common/obj/APPS/myTV_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/APPS/myTV_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/APPS/myTV_intermediates/classes.jar
Copying: out/target/common/obj/APPS/myTV_intermediates/noproguard.classes.jar
target Dex: myTV

trouble processing ""javax/transaction/Transaction.class"":

Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.

This is often due to inadvertently including a core library file
in your application's project when using an IDE (such as
Eclipse). If you are sure you're not intentionally defining a
core class then this is the most likely explanation of what's
going on.

However you might actually be trying to define a class in a core
namespace the source of which you may have taken for example
from a non-Android virtual machine project. This will most
assuredly not work. At a minimum it jeopardizes the
compatibility of your app with future versions of the platform.
It is also often of questionable legality.

If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine
distribution as opposed to compiling an application -- then use
the ""--core-library"" option to suppress this error message.

If you go ahead and use ""--core-library"" but are in fact
building an application then be forewarned that your application
will still fail to build or run at some point. Please be
prepared for angry customers who find for example that your
application ceases to function once they upgrade their operating
system. You will be to blame for this problem.

If you are legitimately using some code that happens to be in a
core package then the easiest safe alternative you have is to
repackage that code. That is move the classes in question into
your own package namespace. This means that they will never be in
conflict with core system classes. JarJar is a tool that may help
you in this endeavor. If you find that you cannot do this then
that is an indication that the path you are on will ultimately
lead to pain suffering grief and lamentation.

1 error; aborting
make: *** [out/target/common/obj/APPS/myTV_intermediates/classes-with-local.dex] Error 1
make: Leaving directory `/mnt/commondata/user/aliontuo/xxxx/0313-test-1/0313'

这个是因为我引入的jar包的什么原因导致的,是否这些包有冲突? 求大神帮忙看看啊

解决方案

android源码下载出现的错误
android源码编译错误总结
编译Android源码错误汇集

时间: 2024-12-28 21:21:15

android 源码编译出现的错误的相关文章

android源码编译 出现的错误

问题描述 android源码编译 出现的错误 编译6.0的时候出现下面这个错误,查了好久毫无头绪 有谁遇到过吗 preparing StaticLib: libc [including out/target/product/generic/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a] preparing StaticLib: libc [including out/target/product/generic/obj/

Android源码编译make的错误处理

Android源码下载: 官方下载:http://source.android.com/source/downloading.html 或参考android源码下载方式:http://blog.csdn.net/sunboy_2050/article/details/6746810 Android编译版本: PLATFORM_VERSION=4.0.1(最新Android 4.0.1) OS 操作系统平台: Linux yanggang 2.6.35- 30-generic #61-Ubuntu

android源码编译出错误

问题描述 android源码编译出错误 请教下,我按正常的源码编译流程报了一个错误,collect2: ld returned 1 exit status make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_omx_intermediates/LINKED/libstagefright_omx.so] Error 1 网上找的解决办法是:cp -Rfp device/ti/blaze/buildspe

android源码编译错误总结

android源码编译及错误解决: 下载的源码,进入源码目录,执行make命令即可. 加快源码编译:make -jN,cpu有几个核N就填几 不过其中会有一些错误,下面是我编译中出现的错误,解决非常的简单: 编译源码中遇到的错误: 贴出来一个个解决: 绿色:表示找出问题 Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y bison -d  -o out/host/linux-x86/obj/EXECUTABLES/aidl_in

使用Android源码编译c模块生成可执行文件

问题描述 使用Android源码编译c模块生成可执行文件 5C 使用的是海思的SDK,这个应该跟Android的编译环境差不多吧.各位大侠 我的问题是这样的写了个helloworld的测试程序,是可以编译成可执行程序然后在机器上运行打印出来的.但是呢,在编译模块的时候遇到问题了.按照之前的方式,在development下创建一个文件夹moudle,然后把所有需要的.c .h .so文件都搬了过来,写了个Android.mk,但是呢 在里面添加一句LOCAL_SHARED_LIBRARIES +=

android源码编译-ubuntu14.0 编译 Android 源码失败

问题描述 ubuntu14.0 编译 Android 源码失败 ubuntu14.0 编译 Android 源码失败贴出错误提示,有知道的大神告诉下,谢谢. *** 没有规则可以创建"out/target/product/rk30sdk/kernel"需要的目标"kernel/arch/arm/boot/Image". 停止.

linux编程-android源码编译失败,出现以下图问题

问题描述 android源码编译失败,出现以下图问题 解决方案 报错提示不是说没有文件输入吗

关于在android源码编译时引用第三方jar宝--需要在android.mk中配置

今天进行android源码编译时出现一个问题,报错找不到文件,最后查看到那些找不到的问题全部都是第三方jar包里的引用文件,于是百度找解决办法.终于找到解决办法,现在分享给大家,我已经亲测通过了. 转自:http://www.cnblogs.com/hopetribe/archive/2012/04/23/2467060.html 开始正文: LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_STATIC_JAVA_LIBRARIES

android源码编译-android 源码编译报错

问题描述 android 源码编译报错 android 源码编译报错,在网上查找没有类似的回答,是否有大神遇到类似问题. 解决方案 看看你报错的上一行,libext2fs.so这个文件缺少,应该是你的源码有问题,或者库没有安装好(编译源码前不是有环境配置吗,要安装一些列东西) 解决方案二: 在android 源码里 编译 aidl 报错 的问题编译android源码报错:build/envsetup.sh: 1: Syntax error: ""("" unexpe