Unable to build for android with facebook sdk and google play together in Unity 5.3.4

后端 未结 4 1862
心在旅途
心在旅途 2021-01-23 11:56

I am using facebook-unity-sdk-7.3.0 and GooglePlayGamesPlugin-0.9.32 in my project. it does not let me build for android and fails with error \'Unable to convert classes

相关标签:
4条回答
  • 2021-01-23 12:10

    'Unable to convert classes into dex format. See the Console for details.'.

    this one shows up when a class/dll exists twice in the project.

    Often it happens when updating framework, if you do not remove the old version properly, then some classes may appear twice.

    Since they are stored in plugins folder, Unity does not check them and they only show up in build process.

    Best could be to remove everything related to both plugins and reimport them. That solved it for me when using UniWebView and Vuforia in same app. One of those was not properly updated.

    0 讨论(0)
  • 2021-01-23 12:17

    Maybe it's too late to answer, I was facing the same issue, I created a plugin this plugin contains Facebook SDK+Admob+unityads +unity IAP, all of them work together, I've created this plugin in unity 5.6.0, but I've checked it, it is working fine in unity 2017 as well, there is a scene "DemoScene", just open it everything is implemented, unity ads, admob, facebook share with callback, unityIAP.

    Note: before importing the plugin kindly delete all the old plugins, also go to services and turn on unity ads. http://www.mediafire.com/file/ccvj7ixir8ive25/FB_ADMOB_UnityIAP_UnityAds_Plugin_Hameed_Ullah_jan.unitypackage

    0 讨论(0)
  • 2021-01-23 12:20

    In my case I could solve this problem by removing Android SDK Build-Tools version 24 and replacing it with version 23.

    0 讨论(0)
  • 2021-01-23 12:30

    Go to Assets->FacebookSDK->Plugins->Android->libs then delete android-support-v4.jar. There is a conflict there because it contains a class from another jar or aar file.

    0 讨论(0)
提交回复
热议问题