简体   繁体   中英

How to reference a java project in my android project?

I am making an android app. I have created a java project also that uses BufferedImage to manipulate images. I want to use this project in my android project. How can I do that?

I'm using eclipse. When I right click my android project > properties > android > [add] my java project isn't in the available options. I think I need to somehow mark it as library.

Does anyone know how I can do this?

Thanks

创建BufferedImage项目的JAR,然后将其复制到新项目中,然后在Eclipse中右键单击JAR,然后选择Build Path-> Add to classpath或类似的东西

Add your Java project to your build path:

Right click on your Android project, click on Properties. In the dialog, select Java Build Path, and then click on the Projects tab. There, add your Java project to the build path.

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