alion_tuo 2015-08-25 08:32 采纳率: 0%
浏览 4016

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包的什么原因导致的,是否这些包有冲突? 求大神帮忙看看啊

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿