Max
Max

Reputation: 16709

Eclipse: reference sources from other project

I've got two projects in Eclipse. Both have some source files, and I want to reference sources from one project in another one. The only thing that works is

Project Properties -> Java build path -> Projects

Where I add the required project.

The problem is that when I'm trying to launch the project1 activity it starts and then launches project2 default activity.

How could I add sources from another project?

Upvotes: 0

Views: 204

Answers (1)

M. le Rutte
M. le Rutte

Reputation: 3563

If you want to use another project as an library in your Android project add the project via Project Properties --> Android --> Library. The referenced project should be marked 'Is Library' on their own properties page.

Upvotes: 1

Related Questions