Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

External project reference in android

Tags:

android

I have an android application that utilizes another project as a project reference. i've gone into the application options, build path, and then selected the project in project references.

everything builds and deploys fine, but when i try to run the application and instantiate a class in that project, i'm getting a java.lang.NoClassDefFoundError errrrrr.

i'm no java project expert, so i assume i've cocked something simple up. any ideas?

like image 565
bryan costanich Avatar asked Dec 31 '10 00:12

bryan costanich


People also ask

How do I access project settings on Android?

Project structure settings To change various settings for your Android Studio project, open the Project Structure dialog by clicking File > Project Structure.

How do I add an existing project to Android Studio?

Launch Android Studio, and click File > New > Import Project. Locate your project directory, click the build. gradle file you created above to select it, and then click OK to import your project.


1 Answers

On Eclipse, go to "Android-Project" -> Properties -> Java Build Path -> Order and Expert, then select the java project you wish to import and move it on top of all the entries.

like image 51
Matthew Avatar answered Oct 25 '22 02:10

Matthew