Adding a JAR into the Android project's /libs folder -
there tons of questions this, none gives clear solution problem (is difficult?)
i'm trying add jar android project. since r17, google says should add jars /libs
folder, , andriod tools take care of rest.
i have included big library, , works good, except of 1 class, decided try , make own jar.
i created new java project, , added simple test
class. exported jar , manually copied jar /libs
folder. cleaned , rebuilt android app without problems, @ runtime, referencing test class, following errors:
java.lang.noclassdeffounderror: mytestpackage.test
when include source of jar project directly, works (of course).
so doing wrong?
since r17, google says should add jars /libs folder, , andriod tools take care of rest.
correct.
so doing wrong?
if had guess, in addition copying jar libs/
, also did "add build path" in eclipse (per other answer). not not necessary, reports indicate doing somehow suppresses packaging jar libs/
apk. if indeed did this, undo manual build path change, , see if helps.
Comments
Post a Comment