Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook unity SDK implementation with other plugin

Is there now a way to use the facebook plugin unity at the same time as other plugins (prime31 for example)?

I use multiple plugin other than facebook (push, in app purchase), and when I import the facebook plugin, it is impossible to compile because of resource sharing. I found a lot of topics on this issue, but I have not been able to solve my problem.

Here is an example of compile-time errors:

stderr[
res\values\attrs.xml:20: error: Attribute "show_pictures" has already been defined
res\values\attrs.xml:21: error: Attribute "extra_fields" has already been defined
res\values\attrs.xml:22: error: Attribute "show_title_bar" has already been defined
res\values\attrs.xml:23: error: Attribute "title_text" has already been defined
res\values\attrs.xml:24: error: Attribute "done_button_text" has already been defined
res\values\attrs.xml:25: error: Attribute "title_bar_background" has already been defined
res\values\attrs.xml:26: error: Attribute "done_button_background" has already been defined
res\values\attrs.xml:29: error: Attribute "multi_select" has already been defined
res\values\attrs.xml:32: error: Attribute "radius_in_meters" has already been defined
res\values\attrs.xml:33: error: Attribute "results_limit" has already been defined
res\values\attrs.xml:34: error: Attribute "search_text" has already been defined
res\values\attrs.xml:35: error: Attribute "show_search_box" has already been defined
res\values\attrs.xml:38: error: Attribute "confirm_logout" has already been defined
res\values\attrs.xml:39: error: Attribute "fetch_user_info" has already been defined
res\values\attrs.xml:40: error: Attribute "login_text" has already been defined
res\values\attrs.xml:41: error: Attribute "logout_text" has already been defined
res\values\attrs.xml:44: error: Attribute "preset_size" has already been defined
res\values\attrs.xml:50: error: Attribute "is_cropped" has already been defined
]

If anyone has a solution let me know!

thank you,

like image 293
Benjamin Gimet Avatar asked May 05 '26 04:05

Benjamin Gimet


1 Answers

This happened to me when I had multiple attrs.xml files in my plugins folder, probably because of using the Facebook Unity plugin along with the Prime31 unity plugin. I deleted one of the attrs.xml files (which I found using the Unity search function) and then this error went away.

like image 90
Andrew Avatar answered May 06 '26 17:05

Andrew



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!