Adding A Java Library to Your Application Using the Project Manager

From RAD Studio
Jump to: navigation, search

Go Up to Using a Custom Set of Java Libraries In Your RAD Studio Android Apps

Using the Projects Window is the simplest approach to add your Java libraries to your application. This approach should work for most people. If you need to modify or remove built-in RAD Studio Java libraries for Android, see Creating and Deploying a classes.dex File Manually.

To add a Java library file (.jar) to your Android application

  1. In the Project Manager, extend the Target Platforms node of your project. Within the Target Platforms node, extend the Android node.
  2. Right-click the Libraries node and select Add.
  3. In the dialog box that opens, select the .jar file that you want to add to your application for Android, and select Open.
Now the Project Manager displays your custom Java library under the Libraries node.

To remove a previously-added custom Java library

  1. Right-click the node of your Java library on the Project Manager.
  2. Select Remove From Project.

See Also