简体   繁体   中英

Double facebook sdk import, in my android library project and in target project

i've a android library project that use facebook sdk, so i've linked it in my project properties. The problem is that also the 3rd part Android application that use my library links the facebook sdk. So the target application link facebbok and my library, and my library links to facebook sdk, finally the facebook sdk is linked twice with conflict obviously.

I check that com/facebook/android goes in my library jar.

How can i solve this double include?

Thanks to all for the support.

I faced the same problem, this is what i did. Hope it helps you too.

  1. Remove all the libraries in your project.(Properties->javaBuildPath->library(tab)->select dependancy folder->remove)
  2. Now go to libs and remove the library.(your project will show some errors, never mind)
  3. Finally import the library that contains the sub 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