Recently trying to use Android Studio, there are some features are far away from eclipse a few streets, but the temporary use is not good enough, first of these two days to do the project migration of a bit of experience to do some summary.
The project migration referred to here refers to the migration of projects from the Eclipse environment to Android Studio,android Studio, which provides the option to import items from Eclipse, which should all be easy to find and not mapped. If your project does not contain any third-party libraries, then your Android studio can directly convert your project to success without our additional modifications. And if your project contains a third-party library, then you need to make some changes.
Here first about the third-party dependency library, generally divided into two, one is a resource file, one does not contain resource files, the latter can be directly into the jar package, put into the Libs folder use, the former needs to be introduced in the form of a library project. (the "Is Library" option, children's shoes developed under eclipse should be familiar).
According to the above statement, make a small summary, in the Android Studio Project migration, the situation is divided into the following several
1, no third-party dependent libraries: direct import
2, for "third-party dependent libraries without resource files": Put the jar package directly into the Libs folder, or use Gradle.
3, for "third-party dependent libraries containing resource files": Import these libraries as module or use Gradle.
Of course, when using gradle, you need to rely on library authors to upload code to jcenter or maven. Here's how to import module.
1, right-click on Project--project structue
2, click "+" to add module
3, to the ' app ' under Dependency, set the module you just introduced as a dependent library.
The small problem I encountered:
When I took care of all the support library dependencies, I still reported the "duplicated class" error, and found that the internal classes of some classes were extracted from Android studio and deleted.
Android Studio Project Migration Summary