-
Now the Project menu under the build automatically removed, do not let it synchronize the compilation, wait a unified to compile.
-
Select the package we need to change, right-click->refactor->rename, the following interface appears, select the previous three options, select Preview, the interface->ok can be
-
Now we can clean up our project; Select the project name->project ->clean
-
This time the class in the project might be wrong. Take a closer look at the mistake of coding, put the code on the previous line of the comment line. Cause the following variable name cannot be found, this time we just wrap the code into the next line.
-
Let's change application name again, this is simpler; Select the project name right-click->android tools ->rename Application packages Modify the package name you want
-
attached: R. File not found
-
The new project, the package name casually wrote Com.kec.activity, later felt not very good, changed to com.table.activity, the results found Gen under the R.java file package name is the original com.kec.activity
-
Whether you try to change the package name in R.java to Com.table.activity, or delete the R.java, Eclipse automatically generates com.kec.activity.
-
Found on the Internet, R.java is maintained by ADT, ADT will monitor the project resource files, automatically register an ID in R.java for easy use.
-
Looking down the road to finally find Androidmainfast.xml this file. In the definition of the mainfast at the very beginning of this file, there is a package= "com.kec.activity", or the original package name, After modifying into Com.table.activity, the original R.java in the project was automatically deleted, leaving only the R.java under Com.table.activity.
-
Problem solving
Eclips Android Modify Package name