DataNucleus: duplicate plugin.xml in multiple jars on android -


on android, build apk: duplicate plugin.xml in following jars.

    compile group: 'org.datanucleus', name: 'datanucleus-core', version: '5.1.1'     compile group: 'org.datanucleus', name: 'datanucleus-api-jpa', version: '5.1.1'     compile group: 'org.datanucleus', name: 'datanucleus-rdbms', version: '5.1.1' 

how solve this? merge them?

update

merged 3 jars , plugin.xml described 1 jar, , created manifest.mf inside merged jar described.

bundle-symbolicname: org.datanucleus;singleton:=true premain-class: org.datanucleus.enhancer.datanucleusclassfiletransformer 

when building android apk, jar manifest.mf discarded android build. @ runtime:

java.lang.noclassdeffounderror: failed resolution of: lorg/datanucleus/enhancement/detachable; 

is error related manifest.mf? there workaround? example, rename manifest.mf can included in apk.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -