简体   繁体   English

Heyzap SDK Unity集成错误-缺少google-play-services_lib

[英]Heyzap SDK Unity Integration error - missing google-play-services_lib

I'm trying to integrate Heyzap 9.6.0(beta) in my Unity project. 我正在尝试将Heyzap 9.6.0(beta)集成到我的Unity项目中。 When trying to setup android, getting error: 尝试设置android时出现错误:

Google Play Services lib project not found at: C:/Android/sdk\\extras\\google\\google_play_services\\libproject\\google-play-services_lib 在以下位置找不到Google Play服务库项目:C:/ Android / sdk \\ extras \\ google \\ google_play_services \\ libproject \\ google-play-services_lib

I've checked my Android SDK, the revision of Google Play services is 30. How can I setup Heyzap for android? 我已经检查了Android SDK,Google Play服务的修订版是30。如何为Android设置Heyzap? Do I need to find and copy this lib manually? 我需要手动查找和复制此库吗?

Install the latest unitypackage release of the official google ads plugin here. 在此处安装官方google ads插件的最新unitypackage版本。

Heyzap is removing the bundled google-play-services from their unity plugin very soon. Heyzap即将从其统一插件中删除捆绑的google-play-services。 You may also need to edit existing AndroidManifest.xml files in your project and remove the following tag wherever it occurs to avoid conflicts with the official plugin: 您可能还需要在项目中编辑现有的AndroidManifest.xml文件,并在任何位置删除以下标记,以免与官方插件发生冲突:

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

EDIT : There may be some complications, you'll need to do the following: 编辑 :可能会有一些并发症,您需要执行以下操作:

  1. remove Assets/Plugins/Android/google-play-services_lib if it exists (or any other imported google-play-services_lib folders in your project) 删除Assets/Plugins/Android/google-play-services_lib如果存在)(或项目中其他任何导入的google-play-services_lib文件夹)
  2. remove these tags from any AndroidManifest.xml files in your project: 从项目中的所有AndroidManifest.xml文件中删除这些标签:

     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" /> 
    1. install the official google ads unity plugin from https://github.com/googleads/googleads-mobile-unity/releases/download/v3.0.4/GoogleMobileAds.unitypackage https://github.com/googleads/googleads-mobile-unity/releases/download/v3.0.4/GoogleMobileAds.unitypackage安装官方google ads unity插件
    2. remove the file at Assets/Plugins/Android/GoogleMobileAdsPlugin/libs/PLUGIN_JAR_GOES_HERE 删除位于Assets/Plugins/Android/GoogleMobileAdsPlugin/libs/PLUGIN_JAR_GOES_HERE

Source : Engineer at Heyzap. 资料来源 :Heyzap的工程师。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM