I am using docx4j in Android succesfully working in Eclipse, I tried to migrate to Android Studio and it is failing with the following error (it is exactly the same code and libraries, not a symbol changed):
Error:Execution failed for task ':app:createDebugMainDexClassList'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 1
any help would be nice.
btw:
I was trying to generate jars from scratch using Apache Ant with the github repos: https://github.com/plutext/jaxb-2_2_5_1/tree/android2 executing "ant dist" and it is saying:
- Code: Select all
Buildfile: d:\Programmierung\jaxb\build.xml
init-standalone:
[echo] Build id: 07/08/2015 01:58 PM(XXX)
[echo] Build number: ${build.number}
[echo] Build version: 2.2.5-1
[echo] Build full version: 2.2.5-1-b${build.number}
compile:
compile:
[javac] d:\Programmierung\jaxb\apgen\build.xml:65: warning: 'includeantrunti
me' was not set, defaulting to build.sysclasspath=last; set to false for repeata
ble builds
[javac] Compiling 5 source files to d:\Programmierung\jaxb\apgen\build\class
es
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
generate-array-listers:
[mkdir] Created dir: d:\Programmierung\jaxb\runtime\build\src\com\sun\xml\bi
nd\v2\runtime\reflect
BUILD FAILED
d:\Programmierung\jaxb\build.xml:103: The following error occurred while executi
ng this line:
d:\Programmierung\jaxb\runtime\build.xml:109: The following error occurred while
executing this line:
d:\Programmierung\jaxb\runtime\build.xml:95: The following error occurred while
executing this line:
d:\Programmierung\jaxb\runtime\build.xml:86: Warning: Could not find file d:\Pro
grammierung\jaxb\runtime\src\com\sun\xml\bind\v2\runtime\reflect\PrimitiveArrayL
isterByte.java to copy.
Total time: 3 seconds
there is no "\runtime\src\com" folder only "\runtime\src\ae\com"
... strange....
changed the build.xml located in the runtime folder, changed the variable
- Code: Select all
/src/com/sun/
- Code: Select all
/src/ae/com/sun/
but then this error appears:
- Code: Select all
BUILD FAILED
d:\Programmierung\jaxb\build.xml:103: The following error occurred while executi
ng this line:
d:\Programmierung\jaxb\runtime\build.xml:197: org.kohsuke.rngom.ast.builder.Buil
dException
at org.kohsuke.rngom.parse.xml.SAXParseable.parse(SAXParseable.java:73)
at com.sun.tools.txw2.RELAXNGLoader.build(RELAXNGLoader.java:78)
at com.sun.tools.txw2.Main.run(Main.java:204)
at com.sun.tools.txw2.Main.run(Main.java:199)
at com.sun.tools.txw2.TxwTask.execute(TxwTask.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: java.io.FileNotFoundException: d:\Programmierung\jaxb\runtime\src\com
\sun\xml\bind\v2\schemagen\xmlschema\xmlschema-for-jaxb.rng (Das System kann den
angegebenen Pfad nicht finden)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at java.io.FileInputStream.<init>(FileInputStream.java:101)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:188)
at java.net.URL.openStream(URL.java:1037)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(XMLEntityM
anager.java:947)
at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.
java:893)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntity
Manager.java:846)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocum
entScannerImpl.java:264)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:513)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1125)
at org.kohsuke.rngom.parse.xml.SAXParseable.parse(SAXParseable.java:65)
... 32 more
Total time: 0 seconds
thank You in advance for any hints
Falko