2013-07-02 2 views
0

geonames 및 jdom을 사용 중이므로 Android 앱을 만들 수 없습니다. jdom에서이 오류를 표시합니다.proguard 및 jdom error compling android APK

[2013-07-02 19:52:56 - <appname>] Proguard returned with error code 1. See console 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath$NSContext: can't find superclass or interface org.jaxen.SimpleNamespaceContext 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.JDOMException: can't find referenced class java.rmi.RemoteException 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.JDOMException: can't find referenced class java.rmi.RemoteException 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.JaxenException 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.SimpleVariableContext 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.jdom.JDOMXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.jdom.JDOMXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.SimpleVariableContext 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.BaseXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.jdom.JDOMXPath 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.JaxenException 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.JaxenException 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.JaxenException 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath: can't find referenced class org.jaxen.JaxenException 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath$NSContext: can't find referenced class org.jaxen.SimpleNamespaceContext 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath$NSContext: can't find referenced class org.jaxen.SimpleNamespaceContext 

[2013-07-02 19:52:56 - <appname>] Warning: org.jdom.xpath.JaxenXPath$NSContext: can't find referenced class org.jaxen.SimpleNamespaceContext 

[2013-07-02 19:52:56 - <appname>]  You should check if you need to specify additional program jars. 

[2013-07-02 19:52:56 - <appname>] Warning: there were 25 unresolved references to classes or interfaces. 

[2013-07-02 19:52:56 - <appname>]   You may need to specify additional library jars (using '-libraryjars'). 

[2013-07-02 19:52:56 - <appname>] java.io.IOException: Please correct the above warnings first. 

[2013-07-02 19:52:56 - <appname>] at proguard.Initializer.execute(Initializer.java:321) 

[2013-07-02 19:52:56 - <appname>] at proguard.ProGuard.initialize(ProGuard.java:211) 

[2013-07-02 19:52:56 - <appname>] at proguard.ProGuard.execute(ProGuard.java:86) 

[2013-07-02 19:52:56 - <appname>] at proguard.ProGuard.main(ProGuard.java:492) 

답변

1

JDOM 버전 1.x는 Android에서 공식적으로 지원되지 않습니다 (작동 할 수도 있음). JDOM 2.x versions are supported (일부 제한 사항 포함)

문제는 jaxen library을 안드로이드 시스템으로 포팅하지 않는다는 것입니다. 프로젝트에 jazen jar가 포함되어 있는지 확인해야합니다. 그렇지 않으면 JDOM XPath의 클래스 종속성이 작동하지 않습니다.

JDOM 2.x에는 better API for XPath queries이 있습니다.