Android Studio project migration summary, androidstudio

Source: Internet
Author: User

Android Studio project migration summary, androidstudio

Recently, I tried to use Android Studio. Some functions are far away from eclipse, but I am not very familiar with it yet. I would like to summarize my experiences in migrating projects over the past two days.

The project migration mentioned here refers to the migration from a project in the eclipse environment to android studio. android studio provides the option to import a project from eclipse, it should be easy for everyone to find. No texture is needed here. If your project does not contain any third-party libraries, android studio can directly convert your project into a successful one without any additional modifications. If your project contains a third-party library, you need to modify it.

Here we will talk about third-party dependent libraries, which are generally divided into two types: resource files, resource files, and jar files, put it in the libs folder, and the former needs to be introduced in the form of a library project. (The "is Library" option should be familiar with kids shoes developed in eclipse ).

According to the above statement, let's make a small summary. During the project migration of android studio, the situation is divided into the following types:

1. No third-party dependent libraries: import directly

2. For "third-party dependent libraries without resource files": directly put the jar package in the libs folder or use gradle.

3. For "third-party dependent libraries containing resource files": import these libraries as modules or use gradle.


When using gradle, the author of the dependent library must upload the code to jcenter or maven. Here we will talk about how to import the module.

1. Right-click the Project -- Project Structue

2. Click "+" to add a module.

3. Go to dependency in 'app' and set the introduced module as a dependent library.


My minor problems:

After all the dependent packages of the supported libraries are completed, the error "duplicated class" is still reported. It is found that the internal classes of the partial classification are extracted from android studio, delete it.

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.