简体   繁体   中英

Import Java classes in own Android-Studio project from an existing android project

How can import and make use of classes from another Android Project in my own, without having to change all imports and project paths manually? I want to leave the external project as is and refer to it from another package. How do i make Android-Studio recognize the package? I cannot access and import classes when i tried to add it as a module.

Open the 2 project in android studio side by side and copy class from the android studio and paste to another android studio. It will automatically change package name of top.

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