How to import android source code(AOSP) into Android studio?

前端 未结 3 1345
生来不讨喜
生来不讨喜 2021-02-04 13:22

I know how to import android source code into eclipse , but is there any way to import android source code into android studio.because i want to change my ide from eclipse to an

3条回答
  •  花落未央
    2021-02-04 13:31

    Follow the steps to Migrate to Android Studio:

    Export from Eclipse

    1. In Eclipse, select File > Export.
    2. In the window that appears, open Android and select Generate Gradle build files.
    3. Select the project you want to export for Android Studio and click Finish.

    Import to Android Studio

    1. In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
    2. Click Import Project.
    3. Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
    4. In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)

    That's all you need to do. For more you may refer to official doc.

提交回复
热议问题