Android Studio Project Migration Summary

Source: Internet
Author: User

Try using Android Studio recently. There are some features that are far from eclipse several streets, but the temporary use is not skilled enough, first of these two days to do the project migration of a little experience to do some summary.

The project migration, which is said here, refers to migrating projects from the Eclipse environment to Android studio. Android Studio has the option to provide import items from eclipse. This people should be very easy to find, here does not map. Assuming your project does not include any third-party libraries, then your Android studio will be able to directly convert your project to success without our additional changes. If your project includes a third-party library, then you need to make some changes.

Let's talk about third-party dependency libraries. Generally there are two types, one is to include the resource file, one is not including the resource file, the latter can be directly into the jar package. In the Libs directory, the former needs to be introduced in the form of a library project. (the "Is Library" option, children's shoes developed under eclipse should be very familiar).

According to the above statement, first make a small summary, in the Android Studio Project migration, the situation is divided into the following several

1, no third-party dependent libraries: direct import can

2, for "third-party dependent libraries without resource files": Place the jar package directly in the Libs directory, or use Gradle.

3, for "third-party dependent libraries including resource files": Import these libraries as module. or use Gradle.


Of course, when using Gradle. The authors who need to rely on the library have uploaded the code to Jcenter or maven.

Here's how to import module.

1. Right-click the project--project structue

2, click "+" to join the module

3. To the ' app ' under Dependency, set the module you just introduced as a dependent library.


The small problem I encountered:

When I took all the support library dependencies, I still reported the "duplicated class" error, and found that the internal classes of some classes were extracted from Android studio and deleted.

Android Studio Project Migration Summary

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.