Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import existing java project into android studio?

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.

  2. Filled the required fields and clicked Finish.

A new empty Java project library was created in my Android project.

I need to use existing(java project) code to my android studio project, how can I do that?

like image 913
Nageswara Rao.CH Avatar asked Aug 25 '15 07:08

Nageswara Rao.CH


1 Answers

You can import a java project if it is a Gradle build project. Otherwise android studio not allow to import other java projects.

File >> New >> Import Project and select the Gradle build java project

Thanks

like image 60
isurujay Avatar answered Oct 19 '22 02:10

isurujay