简体   繁体   中英

Referencing a binding library in a blank android project error

I have some JAR files from a SDK that I want to use. I created a Binding Library project and imported my JAR files in there. When I create a blank android project and add as reference that binding library I've created and build the solution I got error like: error: package dji.sdk.base.DJIBaseComponent does not exist dji.sdk.base.DJIBaseComponent.DJIComponentListener

How can I fix this?

PS: If more information is needed, let me know.

Thanks

EDIT: First screen shot is building just the Dji_SDK_Library project (this is the Binding Library): enter image description here

The second screen shot is building all together. The FlightControlApp project is that Android project that references Dji_SDK_Library. As you can see, the errors are in FlightControlApp, and that dji folder that I marked is generated because of that reference. Before I reference the library in the project that dji folder was not in there. I think that is a problem how it is generated, missing some files maybe. enter image description here

我也通过将.jar文件添加到Android项目中来修复它。

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