A
A
Alexko2013-04-21 16:31:33
Android
Alexko, 2013-04-21 16:31:33

How to use a class in multiple projects?

Two projects have similar functionality, it makes sense for the convenience of development to make a common class that would be used in both applications.
I tried to import a class from a different namespace in Eclipse, but when one application starts, 1) the second is automatically installed and 2) a NoClassDefFoundError is thrown.
Question: how to properly organize the project hierarchy and set up the IDE?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2013-04-21
@Alexko

Move the class to the android library project and connect it to the necessary applications

M
Maxim, 2013-04-21
@mgramin

jar
?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question