After re-applying for a computer, recently began to try to use Android Studio to develop the project, the first thing to do after installing studio is the previous eclipse above the project porting problem, today tried a few different projects, by the way, referring to different online information, more information, Just think of your own preparation for a rainy day, start specific steps:
On the 1.Eclipse to keep the project output, select the project right------and then click on Android---Generate Gradle build files, Next, select the project to be ported finish, If the Build.gradle file appears in the project, it proves the output is successful.
2. Open Android Studio, select File--Import project--Select the Build.gradle files you just generated, click OK
3. If you are running Android Studio for the first time, the following error will appear, Error:the project is using a unsupported version of the Android Gradle plug-in (0.8.3). The recommended version is 1.1.0. You need to download the Gradle file, which can be downloaded by proxy
4. After the download is complete, the following error may appear, error:failed to find Build Tools revision 19.0.1 <a href= "Install.build.tools" >install Build Tools 19.0.1 and sync Project</a> This is caused by inconsistencies in build tools and studio, Open the project's Build.gradle file, modify the value of Compilesdkversion and buildtoolsversion to the version number of studio, clean engineering
5. Next, starting with version 0.9.0 incompatible changes were introduced in the build language may also appear. Please read the Migration Guide to learn how to update your project ... Issues, click Links, Project refreshes, problem solving
6. If the migrated project contains so class library files, you need to create the Main/jnilibs folder in the SRC folder, place the corresponding so file in the file directory, modify the relevant encoding format, run the project test
Android Eclipse under engineering porting to Android studio detailed steps