且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将现有的Java源项目添加到Android Studio

更新时间:2021-07-03 23:28:55

我的解决方案是将Java项目导出到JAR.

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

然后,我将JAR添加到Android Studio项目中.文件">项目结构"将显示以下窗口:

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

那样,我可以原样使用我的文件.

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.