Android Eclipse under engineering porting to Android studio detailed steps

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.