2013-07-02 2 views
0

Я не могу создать выпуск приложения для Android, потому что я использую geonames и jdom. 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 на свою систему Android. Вы должны убедиться, что ваш проект включает jazen jar, иначе ваши зависимости классов для JDOM XPaths не будут работать.

Обратите внимание, что в JDOM 2.x есть better API for XPath queries.