How to include jar files in an Android library project

I am trying to use phonegap inside an android library project. The library project compiles just fine, but when I try to run an action that extends DroidGap, I get this error

01-02 10:12:17.575: W/dalvikvm(316): Unable to resolve superclass of Lcom/***/***.

I think this is due to the fact that the phonegap.jar file is not included in the compiled jar file of the android library project. I tried using ant to build, but it does not work.

Edit: I am building an android library that can be used in other Android projects. I am using a standard android library project , but the actions in this lib project that extended the DroidGap class in phonegap.jar fail with the above error.

+5
source share
6

, . jar , Android, jar, . Android, . SO,

+3

lib. .jar lib. .jar, buid --- > 'add to build'. .jar . .jar .

0

"lib" .

Project → Properties -

  • Java

  • ,

  • JAR

JAR...

, , PhoneGap.jar

0

ADT ( Eclipse Android) . . 5 tutorial.

0

libs lib.

0

You have added the required permission to the manifest file. see links below

http://docs.phonegap.com/en/1.4.0/guide_getting-started_android_index.md.html

0
source

All Articles