Projects - How do I add external projects and jars?

  3 posts   Feedicon  
Replies: 2 - Last Post: May 21, 2009 20:52
by: moamoa
showing 1 - 3 of 3
 
Posted: May 09, 2009 12:03 by moamoa
hi,

just started looking at android via netbeans and have a question.

I am trying to do a little test application using the zxing barcode library, but don't see how I add a linked project or other jar classes to a project. Normally in netbeans you just add them to the project via the library section. However, with the anroid project there is nothing in this section?
 
Posted: May 20, 2009 17:34 by jamesbritt

"Normally in netbeans you just add them to the project via the library section."

I'm having a problem with this too. Usually I just right-click the Libraries node, select "Add JAR/folder", and go find the jar file to add.

This sort of, but not really, works for the Android project. In the IDE it is clear that the jar is seen as part of the project, and I can compile code that depends on a 3rd-party jar, but when building the app the jar never gets placed into the apk file, and the application breaks when run on the emulator.

Adding the jar in the usual way does not seem to alter the build.xml or build-impl.xml files; they show no indication that jars need to be packaged with the app.

 
Posted: May 21, 2009 20:52 by moamoa
I've sorted this now. everything is working for me. I've totally ditched the plugin and just use a freeform project over the standard project build by the sdk. (see other thread)

only issue I have is I can't find a schemaLocation for the AndroidManifest.xml so I can get code completion working on it.

once i've got this. I'm prefect.

Replies: 2 - Last Post: May 21, 2009 20:52
by: moamoa
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close