Android Studio: import project from Gradle

前端 未结 2 1678
深忆病人
深忆病人 2021-01-04 06:35

I want to import my android project (created with Android Studio there are 4 months ago) to my new laptop with Android Studio. So when I select the folder where my project i

2条回答
  •  半阙折子戏
    2021-01-04 07:10

    Do you have gradle installed? If not, following this guide will help.

    Ideally you don't want to select the "Import project from Gradle" option though - you should be using the gradle wrapper created with the project. If there is no gradle wrapper, create a new project and copy the gradle wrapper across.

    The gradle wrapper will download the correct gradle version for the project, and avoids the need to have gradle installed locally.

提交回复
热议问题