简体   繁体   中英

How to debug a library in Eclipse ADT

I have multiple projects with dependencies.

Project A depends on project B, which in turn depends on project C. Project A is an application while project B and C are Android libraries.

I added them in my Java Build Path so that it builds correctly. I also checked them in "Order and Export".

However when I run my application, project B and C do not get copied to the device and result in a verification error. The only way I can get this to work is to manually copy the .jar files to A/libs. While this works, it is tedious to copy/rebuild every time I make the slightest change in B or C.

Is there a way to have them to be automatically resolved and uploaded to the device?

I am running the latest Eclipse ADT.

Make sure that the java files in project B and C are imported into the java files that depend on them in project A.

import com.example.projectb.SampleClass

This has always worked for me.

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