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. Android emulator too snow, unusable

Hi all,

This must have been posted many times before, but I'd like to add my
two cents...

I'm trying to develop an app for Android Honeycomb, but it is next to
impossible. I can't buy a device yet in Europe, and the emulator is
slow beyond usable. I'm using a quad-core 2 GHz machine with 8 GB's of
RAM and Ubuntu 10.10, and it takes more than 10 minutes to start, and
a click or gesture is about impossible to do on the emulator. Typing a
word in a textfield works with at most 5-7 characters per minute.

Is there any way to run code in a simulator instead of this hardware
emulator? Has anyone found a way develop, test and debug code with the
emulator?

With kind regards,

Wouter

-- 

2. Oracle Financial Developer Needed in TX -- F2F Required

Hello Folks,
Hope the day is treating you well!

Please go through the below requirement and let me know if you have any
consultant for the below position?

*Job Title: Oracle Financial Developer
Location: Houston, TX
Duration: 3+ Months*

Job Description:
Strong experience writing and supporting interfaces between Oracle EBS and
non-Oracle applications
Strong Oracle Reports experience writing new reports and enhancing existing
reports
Technical knowledge of Oracle Financials v11.5.10.2 (especially, AP, AR, PO,
order entry, inventory)
Experience using XML Publisher (BI Publisher)
Experience writing, reading and debugging PL/SQL code

Thanks
Leon Parker - l...@panzersolutions.com
203-983-9475

-- 

3. understanding the logic behind the AV sync in Android 2.2

4. Writing Config and Make files

5. Will maxSdkVersion="10" always block Honeycomb?

6. android:configChanges="keyboardHidden|keyboard" never handle onConfigurationChanged

7. How to retrieve Android Version info