Android的Maven构建出故障的处理和QUOT;使用javax / XML /空间/ QName.class": [英] android maven build gives trouble processing "javax/xml/namespace/QName.class":

查看:206
本文介绍了Android的Maven构建出故障的处理和QUOT;使用javax / XML /空间/ QName.class":的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下错误显示在控制台的Maven当我做一个项目 - >干净,只有jar文件是建立在目标文件夹,apk文件没有得到建立。 任何一个可以请帮我解决这个问题。

Regads, 山姆。

我的开发信封是 Eclipse的赫利俄斯 采用Android SDK API级别8 Eclipse的ADT 10.0.1 Maven的Inegration为Android开发工具0.2.5

  11年4月30日下午9点54分07秒IST:[信息]跳到不存在的resourceDirectory D:\我\工作区\机器人\机器人试验程序的\ src \测试\资源
11年4月30日下午9时54分07秒IST:[信息]不编译测试源
11年4月30日下午9时54分07秒IST:[信息]测试被跳过。
11年4月30日下午9时54分07秒IST:[信息] D:\我\ Android的SDK,我\ Android的SDK-窗口/平台工具/ dx.bat [--dex,--output = D :\我\工作区\机器人\ Android的测试程序\目标\ classes.dex,D:\我\工作区\机器人\ Android的测试程序\目标\机器人类]
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[信息]故障处理的javax / XML /空间/ QName.class:
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[信息]不明智或核心类错误的使用(Java *或使用javax。*)
11年4月30日下午9点54分十七秒IST:[信息]当不建立一个核心库。
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[INFO]这往往是由于在不经意间,包括一个核心库文件
11年4月30日下午9点54分十七秒IST:[信息]在你的应用程序的项目,使用IDE时(如
11年4月30日下午9点54分十七秒IST:[信息]的Eclipse)。如果你确定你不是故意定义
11年4月30日下午9点54分十七秒IST:[信息]核心类,那么这是一个什么样的最可能的解释
11年4月30日下午9点54分十七秒IST:[信息]怎么回事。
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[信息]然而,实际上可能会试图在核心定义一个类
11年4月30日下午9点54分十七秒IST:[信息]命名空间,它的你可能已经采取了例如源,
11年4月30日下午9点54分十七秒IST:从非Android的虚拟机工程[信息]。这将最
11年4月30日下午9点54分十七秒IST:[信息]肯定不行的。至少,它损害了
11年4月30日下午9点54分十七秒IST:[信息]与平台的未来版本您的应用程序的兼容性。
11年4月30日下午9点54分十七秒IST:[INFO]这往往也是有问题的合法性。
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[INFO]如果你真的打算建立一个核心库 - 这是唯一
11年4月30日下午9点54分十七秒IST:[信息]合适的,创建一个完整的虚拟机的一部分
11年4月30日下午9点54分十七秒IST:[信息]分配,而不是编译应用程序 - 然后用
11年4月30日下午9点54分十七秒IST:[信息]中的--core库选项晚饭preSS此错误消息。
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[信息]如果您继续使用--core库,但实际上
11年4月30日下午9点54分十七秒IST:[信息]构建应用程序,然后谅解,您的应用程序
11年4月30日下午9点54分十七秒IST:[INFO]将仍然无法生成或运行,在某些时候。请
11年4月30日下午9点54分十七秒IST:[信息] prepared对于谁找到愤怒的客户,例如,您的
11年4月30日下午9点54分十七秒IST:[INFO]应用程序停止运行,一旦他们提升自己的工作
11年4月30日下午9点54分十七秒IST:[信息]系统。你会责怪这个问题。
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[INFO]如果你是合法使用一些code恰好是在
11年4月30日下午9点54分十七秒IST:[信息]核心包,那么最简单安全的替代你是
11年4月30日下午9点54分十七秒IST:[信息]重新包装一下code。也就是说,移动类问题成
11年4月30日下午9点54分十七秒IST:[信息]自己包命名空间。这意味着他们将永远不会在
11年4月30日下午9点54分十七秒IST:[信息]核心系统类冲突。 JarJar是一种工具,可以帮助
11年4月30日下午9点54分十七秒IST:在这方面[信息]你。如果你发现你不能做到这一点,那么
11年4月30日下午9点54分十七秒IST:[信息]这是一个迹象表明,你的路径上,最终
11年4月30日下午9点54分十七秒IST:[INFO]导致疼痛,痛苦,悲伤和悔恨。
11年4月30日下午9点54分十七秒IST:[INFO]
11年4月30日下午9点54分十七秒IST:[信息] 1错误;中止
 

解决方案

如果您使用的是Android的Maven的集成,你应该添加的规定适用范围在Android SDK中的依赖。

 <依赖>
<的groupId> com.google.android< /的groupId>
< artifactId的>的android< / artifactId的>
<版> 2.3.3< /版本>
<范围>提供与LT; /范围>
< /依赖性>
 

Following error is showing in maven console when i do a project->clean,only the jar file is build in the target folder, apk file is not getting build. Can any one please help me to solve this issue.

Regads, Sam.

My Development Env is Eclipse Helios Using Android SDK API level 8 Eclipse ADT 10.0.1 Maven Inegration for Android Development Tools 0.2.5

4/30/11 9:54:07 PM IST: [INFO] skip non existing resourceDirectory D:\my\workspace\android\android-test-app\src\test\resources
4/30/11 9:54:07 PM IST: [INFO] Not compiling test sources
4/30/11 9:54:07 PM IST: [INFO] Tests are skipped.
4/30/11 9:54:07 PM IST: [INFO] D:\my\android-sdk-my\android-sdk-windows/platform-tools/dx.bat [--dex, --output=D:\my\workspace\android\android-test-app\target\classes.dex, D:\my\workspace\android\android-test-app\target\android-classes]
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] trouble processing "javax/xml/namespace/QName.class":
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] Ill-advised or mistaken usage of a core class (java.* or javax.*)
4/30/11 9:54:17 PM IST: [INFO] when not building a core library.
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] This is often due to inadvertently including a core library file
4/30/11 9:54:17 PM IST: [INFO] in your application's project, when using an IDE (such as
4/30/11 9:54:17 PM IST: [INFO] Eclipse). If you are sure you're not intentionally defining a
4/30/11 9:54:17 PM IST: [INFO] core class, then this is the most likely explanation of what's
4/30/11 9:54:17 PM IST: [INFO] going on.
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] However, you might actually be trying to define a class in a core
4/30/11 9:54:17 PM IST: [INFO] namespace, the source of which you may have taken, for example,
4/30/11 9:54:17 PM IST: [INFO] from a non-Android virtual machine project. This will most
4/30/11 9:54:17 PM IST: [INFO] assuredly not work. At a minimum, it jeopardizes the
4/30/11 9:54:17 PM IST: [INFO] compatibility of your app with future versions of the platform.
4/30/11 9:54:17 PM IST: [INFO] It is also often of questionable legality.
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] If you really intend to build a core library -- which is only
4/30/11 9:54:17 PM IST: [INFO] appropriate as part of creating a full virtual machine
4/30/11 9:54:17 PM IST: [INFO] distribution, as opposed to compiling an application -- then use
4/30/11 9:54:17 PM IST: [INFO] the "--core-library" option to suppress this error message.
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] If you go ahead and use "--core-library" but are in fact
4/30/11 9:54:17 PM IST: [INFO] building an application, then be forewarned that your application
4/30/11 9:54:17 PM IST: [INFO] will still fail to build or run, at some point. Please be
4/30/11 9:54:17 PM IST: [INFO] prepared for angry customers who find, for example, that your
4/30/11 9:54:17 PM IST: [INFO] application ceases to function once they upgrade their operating
4/30/11 9:54:17 PM IST: [INFO] system. You will be to blame for this problem.
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] If you are legitimately using some code that happens to be in a
4/30/11 9:54:17 PM IST: [INFO] core package, then the easiest safe alternative you have is to
4/30/11 9:54:17 PM IST: [INFO] repackage that code. That is, move the classes in question into
4/30/11 9:54:17 PM IST: [INFO] your own package namespace. This means that they will never be in
4/30/11 9:54:17 PM IST: [INFO] conflict with core system classes. JarJar is a tool that may help
4/30/11 9:54:17 PM IST: [INFO] you in this endeavor. If you find that you cannot do this, then
4/30/11 9:54:17 PM IST: [INFO] that is an indication that the path you are on will ultimately
4/30/11 9:54:17 PM IST: [INFO] lead to pain, suffering, grief, and lamentation.
4/30/11 9:54:17 PM IST: [INFO] 
4/30/11 9:54:17 PM IST: [INFO] 1 error; aborting

解决方案

If your are using android maven integration, you should add the "provided" scope in your android sdk dependency.

<dependency>        
<groupId>com.google.android</groupId>        
<artifactId>android</artifactId>        
<version>2.3.3</version>        
<scope>provided</scope>        
</dependency>

这篇关于Android的Maven构建出故障的处理和QUOT;使用javax / XML /空间/ QName.class&QUOT;:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆