Search Unity

Build striping breaks Google Ad Plugin

Discussion in 'Android' started by bobeogames, Apr 15, 2019.

  1. bobeogames

    bobeogames

    Joined:
    Feb 9, 2019
    Posts:
    20
    Hi all,

    I have the problems with Google Ads Plugin when build with stripping enabled. I tried to create a file link.xml as below but it doesn't work. Anybody please help.

    Code (CSharp):
    1. <linker>
    2.     <!-- This fixes GameSparks 'ERROR: The authentication or decryption has failed' errors when stripping is enabled -->
    3.      <assembly fullname="GoogleMobileAds">
    4.          <type fullname="GoogleMobileAds.*" preserve="all"/>                          
    5.      </assembly>
    6.     <assembly fullname="PlayServicesResolver">
    7.          <type fullname="PlayServicesResolver.*" preserve="all"/>                          
    8.      </assembly>
    9.    
    10. </linker>