Android Studio Project Migration Summary

Source: Internet
Author: User

Recently trying to use Android Studio, there are some features are far away from eclipse a few streets, but the temporary use is not good enough, first of these two days to do the project migration of a bit of experience to do some summary.

The project migration referred to here refers to the migration of projects from the Eclipse environment to Android Studio,android Studio, which provides the option to import items from Eclipse, which should all be easy to find and not mapped. If your project does not contain any third-party libraries, then your Android studio can directly convert your project to success without our additional modifications. And if your project contains a third-party library, then you need to make some changes.

Here first about the third-party dependency library, generally divided into two, one is a resource file, one does not contain resource files, the latter can be directly into the jar package, put into the Libs folder use, 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 familiar).

According to the above statement, 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

2, for "third-party dependent libraries without resource files": Put the jar package directly into the Libs folder, or use Gradle.

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


Of course, when using gradle, you need to rely on library authors to upload code to jcenter or maven. Here's how to import module.

1, right-click on Project--project structue

2, click "+" to add 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 care of 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.