Combining packages from different projects into one project in eclipse

As part of the Android application that I am developing in eclipse, I need to combine two packages from different projects into one project. I tried to copy the files in the package of the second project to the src folder of the first folder and copy the other files needed for the second package to the res folder of the first project.

But automatically generated Java files, and R.java are not updated when copying. I tried right-clicking on the project and clicking on Android Tools → Fix Project Properties. But nothing has changed.

Any pointers to what I am doing wrong will be greatly appreciated.

+5
source share
3 answers

VonC, noclassdeffounderror , . , , :

, , . "" , : http://developer.android.com/guide/developing/projects/projects-eclipse.html

, .

+1

.

, R.java XML res.

, "id" ​​ "name" strings.xml. (, , , , ).

, "+", , .

, TextView :

<TextView
   android:id="@+id/author"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
/>

.

xml , , . Eclipse R.java.

-1
source

All Articles