How to import existing java project into android studio?

后端 未结 7 1407
既然无缘
既然无缘 2020-12-03 06:19

In my android studio project want to use existing java project code

I tried this way:

  1. Click File > New Module. Select Java Library and click Next.

7条回答
  •  天命终不由人
    2020-12-03 06:37

    A simple google search gives you everything: https://www.google.co.za/search?q=import%20project%20to%20android%20studio

    To import a project to Android Studio:

    1. Start Android Studio and close any open Android Studio projects.
    2. From the Android Studio menu select File > New > Import Project. ...
    3. Select the Eclipse ADT project folder with the AndroidManifest.xml file and click Ok.
    4. Select the destination folder and click Next.

    Google has made this tutorial: https://developer.android.com/sdk/installing/migrate.html

    I have had issues before with this so I normally just create a new project and just copy all the classes, drawables, etc from the old project into the new project.

提交回复
热议问题