googleanalytics / google-analytics-plugin-for-unity

Google Analytics plugin for the Unity game creation system
Apache License 2.0
389 stars 141 forks source link

0.9.34 build error - Duplicate symbols when DEX'ing #128

Open SrirachaSource opened 8 years ago

SrirachaSource commented 8 years ago

I cannot build with the new version, due to symbol collision. After digging around through all the jar files I found that the play-services-base and play-services-drive are both including the Lcom/google/android/gms/internal/zz??; symbols

Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/tim/android-sdk-macosx/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

stderr[ Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzsq; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzsr; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzss; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzst; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzsu; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzsv; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzsw; 7 errors; aborting ] stdout[ processing archive /Users/tim/repo/unity_progressGame/Temp/StagingArea/android-libraries/GooglePlay/libs/./classes.jar... ignored resource META-INF/ ignored resource META-INF/MANIFEST.MF ignored resource com/ ignored resource com/android/ ignored resource com/android/vending/ ignored resource com/android/vending/billing/ processing com/android/vending/billing/IInAppBillingService.class... processing com/android/vending/billing/IInAppBillingService$Stub.class... processing com/android/vending/billing/IInAppBillingService$Stub$Proxy.class... ignored resource com/unity/ ignored resource com/unity/purchasing/ ignored resource com/unity/purchasing/googleplay/ processing com/unity/purchasing/googleplay/ActivityLauncher.class... processing com/unity/purchasing/googleplay/BillingServiceManager.class... processing com/unity/purchasing/googleplay/BillingServiceManager$1.class... processing com/unity/purchasing/googleplay/BillingServiceManager$1$1.class... processing com/unity/purchasing/googleplay/BillingServiceManager$1$2.class... processing com/unity/purchasing/googleplay/BillingServiceManager$2.class... processing com/unity/purchasing/googleplay/BillingServiceProcessor.class... processing com/unity/purchasing/googleplay/BuildConfig.class... processing com/unity/purchasing/googleplay/Consts.class... processing com/unity/purchasing/googleplay/Consts$PurchaseState.class... processing com/unity/purchasing/googleplay/Consts$ResponseCode.class... processing com/unity/purchasing/googleplay/GooglePlayBillingUnAvailableException.class... processing com/unity/purchasing/googleplay/GooglePlayPurchasing.class... processing com/unity/purchasing/googleplay/GooglePlayPurchasing$1.class... processing com/unity/purchasing/googleplay/GooglePlayPurchasing$2.class... processing com/unity/purchasing/googleplay/GooglePlayPurchasing$3.class... processing com/unity/purchasing/googleplay/GooglePlayPurchasing$4.class... processing com/unity/purchasing/googleplay/IActivityLauncher.class... processing com/unity/purchasing/googleplay/IBillingServiceManager.class... processing com/unity/purchasing/googleplay/IabException.class... processing com/unity/purchasing/googleplay/IabHelper.class... processing com/unity/purchasing/googleplay/IabHelper$1.class... processing com/unity/purchasing/googleplay/IabHelper$2.class... processing com/unity/purchasing/googleplay/IabHelper$3.class... processing com/unity/purchasing/googleplay/IabHelper$4.class... processing com/unity/purchasing/googleplay/IabHelper$OnConsumeFinishedListener.class... processing com/unity/purchasing/googleplay/IabHelper$OnConsumeMultiFinishedListener.class... processing com/unity/purchasing/googleplay/IabHelper$OnIabPurchaseFinishedListener.class... processing com/unity/purchasing/googleplay/IabHelper$OnIabSetupFinishedListener.class... processing com/unity/purchasing/googleplay/IabHelper$QueryInventoryFinishedListener.class... processing com/unity/purchasing/googleplay/IabResult.class... processing com/unity/purchasing/googleplay/Inventory.class... processing com/unity/purchasing/googleplay/Purchase.class... processing com/unity/purchasing/googleplay/PurchaseActivity.class... processing com/unity/purchasing/googleplay/PurchaseFailedEvent.class... processing com/unity/purchasing/googleplay/SkuDetails.class... processing archive /Users/tim/repo/unity_progressGame/Temp/StagingArea/android-libraries/MainLibProj/libs/./play-games-plugin-support.jar... ignored resource META-INF/ ignored resource META-INF/MANIFEST.MF ignored resource com/ ignored resource com/google/ ignored resource com/google/games/ ignored resource com/google/games/bridge/ processing com/google/games/bridge/BuildConfig.class... processing com/google/games/bridge/NativeBridgeActivity.class... processing com/google/games/bridge/TokenFragment.class... processing com/google/games/bridge/TokenFragment$1.class... processing com/google/games/bridge/TokenFragment$TokenRequest.class... processing com/google/games/bridge/TokenPendingResult.class... processing com/google/games/bridge/TokenResult.class... processing archive /Users/tim/repo/unity_progressGame/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/libs/./classes.jar... ignored resource .readme ignored resource META-INF/ ignored resource META-INF/MANIFEST.MF ignored resource android/ ignored resource android/support/ ignored resource android/support/v7/ ignored resource android/support/v7/app/ processing android/support/v7/app/ActionBar.class... processing android/support/v7/app/ActionBar$DisplayOptions.class... processing android/support/v7/app/ActionBar$LayoutParams.class... processing android/support/v7/app/ActionBar$NavigationMode.class... processing android/support/v7/app/ActionBar$OnMenuVisibilityListener.class... processing android/support/v7/app/ActionBar$OnNavigationListener.class... processing android/support/v7/app/ActionBar$Tab.class... processing android/support/v7/app/ActionBar$TabListener.class... processing android/support/v7/app/ActionBarActivity.class... processing android/support/v7/app/ActionBarDrawerToggle.class... processing android/support/v7/app/ActionBarDrawerToggle$1.class... processing android/support/v7/app/ActionBarDrawerToggle$Delegate.class... processing android/support/v7/app/ActionBarDrawerToggle$DelegateProvider.class... processing android/support/v7/app/ActionBarDrawerToggle$DrawerArrowDrawableToggle.class... processing android/support/v7/app/ActionBarDrawerToggle$DrawerToggle.class... processing android/support/v7/app/ActionBarDrawerToggle$DummyDelegate.class... processing android/support/v7/app/ActionBarDrawerToggle$HoneycombDelegate.class... processing android/support/v7/app/ActionBarDrawerToggle$JellybeanMr2Delegate.class... processing android/support/v7/app/ActionBarDrawerToggle$ToolbarCompatDelegate.class... processing android/support/v7/app/ActionBarDrawerToggleHoneycomb.class... processing android/support/v7/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo.class... processing android/support/v7/app/AlertController.class... processing android/support/v7/app/AlertController$1.class... processing android/support/v7/app/AlertController$2.class... processing android/support/v7/app/AlertController$3.class... processing android/support/v7/app/AlertController$4.class... processing android/support/v7/app/AlertController$5.class... processing android/support/v7/app/AlertController$AlertParams.class... processing android/support/v7/app/AlertController$AlertParams$1.class... processing android/support/v7/app/AlertController$AlertParams$2.class... processing android/support/v7/app/AlertController$AlertParams$3.class... processing android/support/v7/app/AlertController$AlertParams$4.class... processing android/support/v7/app/AlertController$AlertParams$OnPrepareListViewListener.class... processing android/support/v7/app/AlertController$ButtonHandler.class... processing android/support/v7/app/AlertController$CheckedItemAdapter.class... processing android/support/v7/app/AlertDialog.class... processing android/support/v7/app/AlertDialog$Builder.class... processing android/support/v7/app/AppCompatActivity.class... processing android/support/v7/app/AppCompatCallback.class... processing android/support/v7/app/AppCompatDelegate.class... processing android/support/v7/app/AppCompatDelegateImplBase.class... processing android/support/v7/app/AppCompatDelegateImplBase$1.class... processing android/support/v7/app/AppCompatDelegateImplBase$ActionBarDrawableToggleImpl.class... processing android/support/v7/app/AppCompatDelegateImplBase$AppCompatWindowCallbackBase.class... processing android/support/v7/app/AppCompatDelegateImplV11.class... processing android/support/v7/app/AppCompatDelegateImplV14.class... processing android/support/v7/app/AppCompatDelegateImplV14$AppCompatWindowCallbackV14.class... processing android/support/v7/app/AppCompatDelegateImplV23.class... processing android/support/v7/app/AppCompatDelegateImplV23$AppCompatWindowCallbackV23.class... processing android/support/v7/app/AppCompatDelegateImplV7.class... processing android/support/v7/app/AppCompatDelegateImplV7$1.class... processing android/support/v7/app/AppCompatDelegateImplV7$2.class... processing android/support/v7/app/AppCompatDelegateImplV7$3.class... processing android/support/v7/app/AppCompatDelegateImplV7$4.class... processing android/support/v7/app/AppCompatDelegateImplV7$5.class... processing android/support/v7/app/AppCompatDelegateImplV7$5$1.class... processing android/support/v7/app/AppCompatDelegateImplV7$6.class... processing android/support/v7/app/AppCompatDelegateImplV7$ActionMenuPresenterCallback.class... processing android/support/v7/app/AppCompatDelegateImplV7$ActionModeCallbackWrapperV7.class... processing android/support/v7/app/AppCompatDelegateImplV7$ActionModeCallbackWrapperV7$1.class... processing android/support/v7/app/AppCompatDelegateImplV7$ListMenuDecorView.class... processing android/support/v7/app/AppCompatDelegateImplV7$PanelFeatureState.class... processing android/support/v7/app/AppCompatDelegateImplV7$PanelFeatureState$SavedState.class... processing android/support/v7/app/AppCompatDelegateImplV7$PanelFeatureState$SavedState$1.class... processing android/support/v7/app/AppCompatDelegateImplV7$PanelMenuPresenterCallback.class... processing android/support/v7/app/AppCompatDialog.class... processing android/support/v7/app/AppCompatDialogFragment.class... processing android/support/v7/app/AppCompatViewInflater.class... processing android/support/v7/app/AppCompatViewInflater$DeclaredOnClickListener.class... processing android/support/v7/app/NavItemSelectedListener.class... processing android/support/v7/app/NotificationCompat.class... processing android/support/v7/app/NotificationCompat$1.class... processing android/support/v7/app/NotificationCompat$Builder.class... processing android/support/v7/app/NotificationCompat$IceCreamSandwichExtender.class... processing android/support/v7/app/NotificationCompat$JellybeanExtender.class... processing android/support/v7/app/NotificationCompat$LollipopExtender.class... processing android/support/v7/app/NotificationCompat$MediaStyle.class... processing android/support/v7/app/NotificationCompatImpl21.class... processing android/support/v7/app/NotificationCompatImplBase.class... processing android/support/v7/app/ToolbarActionBar.class... processing android/support/v7/app/ToolbarActionBar$1.class... processing android/support/v7/app/ToolbarActionBar$2.class... processing android/support/v7/app/ToolbarActionBar$ActionMenuPresenterCallback.class... processing android/support/v7/app/ToolbarActionBar$MenuBuilderCallback.class... processing android/support/v7/app/ToolbarActionBar$PanelMenuPresenterCallback.class... processing android/support/v7/app/ToolbarActionBar$ToolbarCallbackWrapper.class... processing android/support/v7/app/TwilightCalculator.class... processing android/support/v7/app/TwilightManager.class... processing android/support/v7/app/TwilightManager$1.class... processing android/support/v7/app/TwilightManager$TwilightState.class... processing android/support/v7/app/WindowDecorActionBar.class... processing android/support/v7/app/WindowDecorActionBar$1.class... processing android/support/v7/app/WindowDecorActionBar$2.class... processing android/support/v7/app/WindowDecorActionBar$3.class... processing android/support/v7/app/WindowDecorActionBar$ActionModeImpl.class... processing android/support/v7/app/WindowDecorActionBar$TabImpl.class... ignored resource android/support/v7/appcompat/ processing android/support/v7/appcompat/BuildConfig.class... ignored resource android/support/v7/graphics/ ignored resource android/support/v7/graphics/drawable/ processing android/support/v7/graphics/drawable/DrawableUtils.class... processing android/support/v7/graphics/drawable/DrawableWrapper.class... processing android/support/v7/graphics/drawable/DrawerArrowDrawable.class... processing android/support/v7/graphics/drawable/DrawerArrowDrawable$ArrowDirection.class... ignored resource android/support/v7/text/ processing android/support/v7/text/AllCapsTransformationMethod.class... ignored resource android/support/v7/transition/ processing android/support/v7/transition/ActionBarTransition.class... ignored resource android/support/v7/view/ processing android/support/v7/view/ActionBarPolicy.class... processing android/support/v7/view/ActionMode.class... processing android/support/v7/view/ActionMode$Callback.class... processing android/support/v7/view/CollapsibleActionView.class... processing android/support/v7/view/ContextThemeWrapper.class... processing android/support/v7/view/StandaloneActionMode.class... processing android/support/v7/view/SupportActionModeWrapper.class... processing android/support/v7/view/SupportActionModeWrapper$CallbackWrapper.class... processing android/support/v7/view/SupportMenuInflater.class... processing android/support/v7/view/SupportMenuInflater$InflatedOnMenuItemClickListener.class... processing android/support/v7/view/SupportMenuInflater$MenuState.class... processing android/support/v7/view/ViewPropertyAnimatorCompatSet.class... processing android/support/v7/view/ViewPropertyAnimatorCompatSet$1.class... processing android/support/v7/view/WindowCallbackWrapper.class... ignored resource android/support/v7/view/menu/ processing android/support/v7/view/menu/ActionMenuItem.class... processing android/support/v7/view/menu/ActionMenuItemView.class... processing android/support/v7/view/menu/ActionMenuItemView$ActionMenuItemForwardingListener.class... processing android/support/v7/view/menu/ActionMenuItemView$PopupCallback.class... processing android/support/v7/view/menu/BaseMenuPresenter.class... processing android/support/v7/view/menu/BaseMenuWrapper.class... processing android/support/v7/view/menu/BaseWrapper.class... processing android/support/v7/view/menu/ExpandedMenuView.class... processing android/support/v7/view/menu/ListMenuItemView.class... processing android/support/v7/view/menu/ListMenuPresenter.class... processing android/support/v7/view/menu/ListMenuPresenter$MenuAdapter.class... processing android/support/v7/view/menu/MenuBuilder.class... processing android/support/v7/view/menu/MenuBuilder$Callback.class... processing android/support/v7/view/menu/MenuBuilder$ItemInvoker.class... processing android/support/v7/view/menu/MenuDialogHelper.class... processing android/support/v7/view/menu/MenuItemImpl.class... processing android/support/v7/view/menu/MenuItemImpl$1.class... processing android/support/v7/view/menu/MenuItemWrapperICS.class... processing android/support/v7/view/menu/MenuItemWrapperICS$ActionProviderWrapper.class... processing android/support/v7/view/menu/MenuItemWrapperICS$CollapsibleActionViewWrapper.class... processing android/support/v7/view/menu/MenuItemWrapperICS$OnActionExpandListenerWrapper.class... processing android/support/v7/view/menu/MenuItemWrapperICS$OnMenuItemClickListenerWrapper.class... processing android/support/v7/view/menu/MenuItemWrapperJB.class... processing android/support/v7/view/menu/MenuItemWrapperJB$ActionProviderWrapperJB.clas

jurajpap94 commented 7 years ago

I have similar issue. I use Android API 25, Unity 5.5 and GAv4. How did you solve the problem?