现在有没有办法像其他插件一样使用facebook插件统一(例如prime31)?
我使用除facebook之外的多个插件(推送,在应用程序购买中),当我导入facebook插件时,由于资源共享而无法编译。我在这个问题上找到了很多主题,但我无法解决我的问题。
以下是编译时错误的示例:
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
]
如果有人有解决方案,请告诉我们!
谢谢,
答案 0 :(得分:1)
当我在我的插件文件夹中有多个attrs.xml文件时,这发生在我身上,可能是因为使用了Facebook Unity插件和Prime31 unity插件。我删除了一个attrs.xml文件(我使用Unity搜索功能找到),然后这个错误就消失了。
答案 1 :(得分:0)
您可以同时使用prime31的多个插件,只需确保您只有一个 P31RestKit.dll 的副本。