简体   繁体   中英

Import java app into android project in android studio

I'm building an android app which has a dependency that i have written as a standalone app in java. I want to import the java project into my android app, not just as a jar file because I may need to make changes to it down the line. is there an easy way to do this in Android Studio?

You should move the classes or methods your app is depending on in a library. Both your Java and Android app would have the same dependency on this library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM