2

Can anybody tell How to add java project as library in android project using eclipse?

djot
  • 2,927
  • 3
  • 17
  • 28
mohan
  • 11,969
  • 29
  • 102
  • 172

3 Answers3

0

As is explained in the documentation, you can go into project properties (e.g., Project > Properties from the Eclipse main menu), go into the Android section of the properties dialog, and use the Add... button in the Library group box to pick an Android library project from the available libraries in your workspace.

CommonsWare
  • 910,778
  • 176
  • 2,215
  • 2,253
0

Maybe take a look here..

Import source java project in Android project

Or you can create a jar file from your project and import it as external jar as described here

hope it helps

Community
  • 1
  • 1
JcDenton86
  • 923
  • 1
  • 12
  • 32
0

For Library Project: Rightclick->Properties->Android-> tick Is Library

For project in need of import: Rightclick->Properties->Android->Add...->Library Project

MLProgrammer-CiM
  • 16,915
  • 5
  • 39
  • 75
  • 1
    By inference (since he is specifying "Android" specifically in the second set), tt looks like this is the same issue I am attempting to resolve - a non-Android java project used by an Android java project. There isn't an "Android" tab in a non-Android project. – Kit10 Jan 11 '14 at 19:27
  • I don't know how to, but this can probably link also against: http://stackoverflow.com/questions/9889572/android-project-referencing-normal-java-project-in-eclipse-since-sdk-tools-upd – Kit10 Jan 11 '14 at 19:29