Java Question Class doesn't come with an associated EnclosingMethod attribute

warwound

Expert
Licensed User
Longtime User
I'm compiling an app with a few libraries that i have created and it's failing to compile with this error:


The nu.xom package is an external .jar file used by my XOM library.

The org.apache.xerces.dom package is again part of an external file named dtd-xercesImpl.jar which is required by the XOM library.

The error implies that these external .jar files have been compiled in a way that makes then unsuitable for B4A.
I can download the java XOM source code and compile it myself and hopefully that'll fix that problem, and i'll have to Google to see if there's a compatible version of the dtd-xercesImpl.jar library.

But before i started looking for a solution i tried the simple demo B4A project from my XOM library thread.
It compiles and runs perfectly.

So i'm just asking why one B4A project fails to compile and another successfully compiles with the exact same collection of library files.
Searching the forum i found a reference to a similar error and the reason for the error was that two referenced libraries include the same class.
My project that fails to compile is a large project written by someone else, i'm pretty sure that there's no class being included more than once.

Has anyone got any suggestions?
Shall i simply recompile these two external .jar files from source and hope that'll be a solution or is it more likely that somewhere in the failing project there is a class being included more than once?

Thanks.

Martin.
 

warwound

Expert
Licensed User
Longtime User
The error messages end with:


So compilation fails with an out of memory error rather than continuing with 'Standard dexter'.

Martin.
 

warwound

Expert
Licensed User
Longtime User
Thanks.
Increasing the ini file MaxRamForDex value from 512 to 1024 has fixed the problem.

This is a large project with 58 various types of modules, it uses 20 different libraries.
Guess the default setting of 512MB just wasn't enough.

Martin.
 

socialnetis

Active Member
Licensed User
Longtime User
I have a very similar problem (which I mention here).
And increasing the MaxRamForDex value also fixed the problem.

Does this have any impact in the final apk which is installed in a device?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…