Eclipse Engineering migration to Android Studio

Source: Internet
Author: User

Goal: The migration succeeds and runs successfully!

Add: Sync video behind the article!

Two different ways:

1. Export with Gradle, import with Gradle in Android Studio (not recommended)

2. Import the Eclipse project directly with Android Studio (recommended)

Me in the second way.

Steps:
    1. Eclipse Engineering ( master project + dependent third-party library )
    2. Import master project (dependent libraries ignore, studio will automatically import)
    3. Wait for buildafter import (may be slow, recommended SSD)
    4. There will be a lot of errors, slowly troubleshooting, one by one to see the log
    5. Error1: A duplicate resource file (String) that can be searched globally to see if it is duplicated, as is not allowed to duplicate the resource definition.
    6. ERROR2: Annotations * * @null * * Dependency error, addingcompile ‘com.android.support:support-annotations:19.1.0‘
    7. OK, it's working.
    8. Error Append: Manifest file Error:
      Add a namespace after the root tagxmlns:tools="http://schemas.android.com/tools"

      <applicationandroid:name="com.fanwe.app.App"android:allowBackup="true"android:icon="@drawable/icon"android:label="@string/app_name"android:theme="@style/FanweTheme"tools:replace="icon, label,theme">//Android Studio会引导你使用tools标签来进行设置:tools:replace="icon, label,theme"
End:

In fact, the second way is very simple, there is nothing special to pay attention to the place, to, there is a file to note, because some files as not copied over and ignored them.

In the import-summary.txt there is a Ignored Files: note that the specific type of file will be ignored by Android studio.

There is a blog to explain this, I also put in the back of the article:

Android Studio ignores file explanation-blog Park

This article synchronizes video operation recording: Click to download
Finished =.=

Eclipse Engineering migration to Android Studio

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.