PlatformLibrary example not working

18 views
Skip to first unread message

Tez

unread,
Jan 10, 2011, 12:38:52 PM1/10/11
to android-platform
Hi,

I am following the PlatformLibrary example, but the final JAR is not
being copied to the /system/framework folder.
This is the structure:

../vendor/XYZLibrary ->
has a folder XYZRuntimeLibrary and an Android.mk (similar to
PlatformLibrary)

inside XYZLibrary -> I have an Android.mk that builds java sources.
and etc/xyzlibrary.xml

I don't see that jar copied to /system/framework.

Cheers,
Earlence

Tez

unread,
Jan 10, 2011, 12:56:13 PM1/10/11
to android-platform
okay....using make com.xyzlibrary installs the JAR.
But I still get NoClassDefFound errors when I try to instantiate a
class from my platform library.
why is this so?

(PS: I am referencing the code from an external APK that is compiled
to link with the library)

Tez

unread,
Jan 10, 2011, 1:30:38 PM1/10/11
to android-platform
log message from dalvikvm says that it could not find the class.

Tez

unread,
Jan 10, 2011, 2:54:43 PM1/10/11
to android-platform
I missed out "uses-library" in the manifest!!
now everything works fine.
Reply all
Reply to author
Forward
0 new messages