Android: java.lang.NoClassDefFoundError after importing jar. Wrong jar? -


after i've imported jar file android project , ran it, java.lang.noclassdeffounderror @ first thought i'm doing wrong while importing it, tryed import jar i've online class , worked! here question:

is there specific way of creating jar files android project?

i've point out first jar created java class wrote time ago. jar works without problems in java app. jar created using eclipse kepler.

thanks help.

the solution shoved pretty simple. i'm using java 1.7 create jar files, android accepts jars created java 1.6. problem caused incompatibility in bytecode , therefore need force compiler use java 1.6.

if you're using eclipse, go project properties > java compiler , select compiler compliance level: 1.6 save changes , rebuild project. you're ready export "working" jar :)


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -