Including 3rd party jars in Android App

by sundancebleu » Wed, 28 Oct 2009 16:44:42 GMT


Sponsored Links
 I'm hoping someone can help, when I try including a custom jar file I
built in another java project through eclipse (in my build path), I
get a "could not find method" error when I try to run.  When I put a
"uses-library" in the manifest.xml, I get an
"INSTALL_FAILED_MISSING_SHARED_LIBRARY" error when the app tries to
install on the emulator.  Do I need to build the library as part of my
AVD?  if so, how do I do that?  Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~



Including 3rd party jars in Android App

by Xavier Ducrohet » Thu, 29 Oct 2009 01:18:38 GMT


 uses-library is for shared library which you cannot add yourself.

You should simply have to put the jar file in your project folder and,
from Eclipse, do a right click on it from the Package Explorer and
choose "Add to build path"

Xav






-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Including 3rd party jars in Android App

by Ian Guedes Maia » Thu, 29 Oct 2009 14:41:22 GMT


 Put your .jar on <PROJECT>/libs. This folder is recognized by eclipse
and will be included on the APK.

2009/10/27 sundancebleu <sundanceb...@gmail.com>:

--~--~---------~--~----~------------~-------~--~----~



Including 3rd party jars in Android App

by sundancebleu » Thu, 29 Oct 2009 14:44:32 GMT


 Thanks for the reply.  I actually tried that, but it still doesn't
work.  I get the following error (not sure if this helps):

10-29 03:48:46.469: WARN/dalvikvm(721): Unable to resolve superclass
of Lcom/roger/framework/util/StringUtils; (480)
10-29 03:48:46.469: WARN/dalvikvm(721): Link of class 'Lcom/roger/
framework/util/StringUtils;' failed
10-29 03:48:46.469: ERROR/dalvikvm(721): Could not find method
com.roger.framework.util.StringUtils.indexOfIgnoreCase, referenced
from method com.roger.location.AgentAddressHelper.parseResults
10-29 03:48:46.469: WARN/dalvikvm(721): VFY: unable to resolve static
method 1868: Lcom/roger/framework/util/StringUtils;.indexOfIgnoreCase
(Ljava/lang/String;Ljava/lang/String;)I


I also seem to be getting a VerifyError

Any ideas?  Thanks,

- Roger






--~--~---------~--~----~------------~-------~--~----~



Including 3rd party jars in Android App

by Xavier Ducrohet » Fri, 30 Oct 2009 02:08:30 GMT


 Are you sure that your jar file doesn't depend on another jar file?

Xav








-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

--~--~---------~--~----~------------~-------~--~----~



Including 3rd party jars in Android App

by sundancebleu » Fri, 30 Oct 2009 13:01:15 GMT


 Ok, I feel like an idiot.  The jar file I was including was built by
someone else and I was assuming it wasn't dependent on any other
jars.  It turns out it was, so that was the issue.  I just jumped to
the worst case scenario instead of considering the simplest.  Thanks
for all that help everyone.

- Roger









--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Just got this....

Delivery to the following recipient failed permanently:

     android-developers@googlegroups.com

Technical details of permanent failure:
The groupandroid-develop...@googlegroups.com  has exceeded its quota for total 
number of recipients.



Hah.. I assume it has something to do with the fact that I also just got 
about 100 messages from earlier this month... Have the spammers taken 
over this group?


--
Sincerely,

Brad Gies
-----------------------------------------------------------------------
Bistro Bot - Bistro Blurb
http://bgies.com            http://nocrappyapps.com
http://bistroblurb.com      http://forcethetruth.com
http://ihottonight.com
-----------------------------------------------------------------------
Everything in moderation, including abstinence (paraphrased)

Every person is born with a brain... Those who use it well are the successful 
happy ones - Brad Gies

Adversity can make or break you... It's your choice... Choose wisely - Brad Gies

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

--

2. Configure a URL for my application but should be outside of application

Hi Everyone,

Is there anyway to configure a url in device and read that value from
my application?

Aim is to test the my application in different environments by
configuring the URL externally. So that there wont be any change in
code apart from external URL.

Please suggest.

-Nunna

-- 

3. column '_id' does not exist

4. Switching between two activities with animation

5. Layouts

6. Gesture Library - vertical and horizontal strokes

7. 60% payment declined on Android Market today!