Android Studio Import Eclipse Project

Source: Internet
Author: User

As Google's version of the new Android editor Android Studio (hereinafter referred to as) continues to update, more and more people are moving from the familiar editor eclipse to the As, and the Eclipse development team admits it will abandon the maintenance of eclipse. This means that as will eventually become the mainstream editor for Android development. Okay, cut the crap. Here's a direct introduction to how to transfer an existing Eclipse project to as.

This is a new project I built in Eclipse Asdemo. Many times our projects are linked to external libraries, and in this project I use a Pulltorefresh external library.

First, our project will be generated with Gradle project (do not ask me what is gradle, online a lot of this introduction, this article does not do this kind of introduction).

Select the projects that we want to lead and the libraries that depend on them.

Click Finish, the first import will not report what error, the second import will be reported an exception, the general is that you choose the file has generated the Gradle file, so you have to choose the following one check box is forced to regenerate into a once, okay.

At this time you go to see your project, in fact, there is no change, just a gradle.build file

Let's go to the as editor. There are a lot of problems with the switch from eclipse to as before the 1.4 release, as the check on the configuration file is very strict. For example, gradle version of the problem, there are a lot of confused problems. After an afternoon of doing this, I decided to find another alternative ....

Later, it was found that the eclipse file could be imported directly in version 1.4, which means that the project without as was compiled directly in as. It will automatically help you generate the relevant profile when you import it.

This can be done if you want to import the appropriate library files.

Then you will find the corresponding library file in your project, and the library file also generates the Build.gradle file.

Android Studio Import Eclipse Project

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.