Skip to content Skip to sidebar Skip to footer

How To Add Exisiting Java Source Project To Android Studio

I have an existing git repository of pure Java code that I would like to add to my Android project. I don't want to change any of the existing files. I want to keep my existing pac

Solution 1:

Solution 2:

My solution to this was to Export my Java project to a JAR.

And then, I added the JAR to the Android Studio project. File > Project Structure leads to this window: enter image description here

That way, I could use my files untouched as such.

I am not so happy with this solution because it breaks my revision control system.

Post a Comment for "How To Add Exisiting Java Source Project To Android Studio"