Eclipse opens an existing Android project and common issues1, click the Menu "File"--"import", will pop up the Import dialog box:Android Projects and common problems "name=" image_operate_84841359866226255 "alt=" open an existing Android project and common Problems "src="/HTTP/ s6.sinaimg.cn/mw690/93dc666cgd4ca6e4e43a5&690 "width=" 441 "height=" 459 ">
2, select "General" – "Existing Projects into Workspace" and click "Next":Android Projects and common problems "name=" image_operate_42181359866190869 "alt=" open an existing Android project and common Problems "src="/HTTP/ s16.sinaimg.cn/mw690/93dc666cgd4ca6f3cfcaf&690 "width=" 444 "height=" 459 ">
1. Select "Browse" to select the directory where the project is located, click "OK" to import. FAQ:1, after the project import, prompt: Unable to resolve target ' android-3 'Workaround: Open the Project.Properties file in your project and modify "Target=android-3" to "target=android-10", which is the version number of the Android SDK API you installed. Note, however, that you should also synchronize the changes in Androidmanifest.xml, otherwise the compilation warns you that the version used is too low. 2, after the project import, prompt: Android requires compiler compliance level 5.0 or 6.0. Found ' 1.7 ' instead. Please use Android Tools > Fix Project Properties.Workaround:1), Project right-click--android tools--fix Project Properties2), if not, check the Project--properties--java compiler, confirm that the JDK compliance is set to 1.6, and enable specific setings. 3, Erros:the type R is already definedWORKAROUND: Regardless of whether there is a R.java file, delete the R.java file directly, then select the project in the package explorer on the left, then click the Project menu and select Close Project. Now close the item and then re-click Open Project in the Project menu to turn the project on, so that eclipse automatically regenerates the R.java file for us. We must note that the R.java file is automatically maintained by the system for us, at any time do not need our own manual to maintain ... 4. erros:skipping Index fileWorkaround: Delete the file directly. 5. Import Eclipse Project Error Invalid project descriptionThe reason is that in the specified workspace of Eclipse (WorkSpace), the project name must match the name in the project file. set up the environment, the previous project moved to a new environment, the results of how to open all encountered invalid project description error prompt. Toss for half a day. Finally found the solution is very simple, say it will be angry dead! Is that the project cannot be placed directly under the Set workspace directory. Change a directory or set a directory is OK. 6. Build issues that may be encountered by importing low-version project in Androidwhen you use a later version of the SDK and then import a previous version of project, you experience some compatibility issues. (1) Unable to resolve target ' android-5 'because the version of SDK,API that is now used in this machine is 7, and the imported project uses 2.0 developed, its API version is 5.2.1. It would be nice to change the target=android-5 in Default.properties to target=android-7.