How the Android Stutio project is imported into Eclipse, the perfect solution

Source: Internet
Author: User

Android Stutio has already come out, but the Chinese programmers still love eclipse, after all these years, has been so familiar. In fact, I think so, so I'm still sticking with eclipse. But there is still a lot of time to learn about Android Stutio, which is easier to operate than eclipse and has lots of new content.

When using some open source frameworks, almost all Android Stutio are knocked out, how to import eclipse to use it? Let's talk about it today.

First, look at the similarities and differences in the directory structure of Stutio and Eclipse, stutio the contents of thepackage more:


Detailed: 1.gradle is often a few jar packages, 2.library is a number of supported libraries, 3.sample is the Code of the project (res resource files and Java code files).


We are further to understand:


We click into the library, this is what I have modified, and when you open your Stutio project into the main directory, the inside is: Java and res and androidmanifest.xml. And Eclipse, just a little less than eclipse.


Workaround:

1. First, if you need an Android Stutio project with a library to support the project, then you will library-->src-->main the Java folder name to SRC, in the same vein, the sample--in the demo The Java folder name under >src--main is also changed to SRC;

2. Create a project in your eclipse with the same name as the Android Stutio project package you need, without knowing the name, in the Android Stutio Project

In the main directory , in the Androidmanifest.xml, draw line.


3. Copy the project created by Eclipse and delete the project from Eclipse.

4. Copy the src/res/Androidmanifest.xml under Library-->src-->main directly to the file copied from eclipse.

5. If there is a need to support the library, it is best to pilot the storage, such as my case, the first import in Eclipse, the library imported;

Islibrary


6. Then import the project, that is, the demo, click Add in the Properies, add the library into the OK;



I have tried to successfully import the Android Stutio project into Eclipse and share it with everyone so that it is easy for everyone to base code.

Disclaimer: If you want to reprint, please show the source!

How the Android Stutio project is imported into Eclipse, the perfect solution

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.