我找不到 google-play-services-lib
I can't find google-play-services-lib
我遵循了这条路径 -> C:\Users\onat\AppData\Local\Android\sdk\extras\google\google_play_services
但我找不到我的项目的 google-play-services-lib
如果您还按照 中所述通过 SDK 管理器更新了 Google 存储库,您将在 <sdk>/extras/google/m2repository/com/google/android/gms
中找到它们。各个库采用 aar
格式,因此您必须自己提取 jar
。
您还可以使用此 site 上可用的版本历史将其降级回修订版 29。
也基于此forum:
We would never recommend you to rename/edit any part of the Android
SDK. If you find any issues, do let us know and we would look into it.
As to your Mobile Ads/Unity/Android integration, I will certainly help
you. Please follow these steps if you are on Google Play Service
revision 30.0 (v 9.0) -
- Make a new project and import the Mobile Ads Unity package.
- Copy our demo script,
make a new empty GameObject and add the script as the component.
- Right click on Assets > PlayServicesResolver folder and select Google Play Services > Resolve Client Jars.
- There is a known issue with GMS revision 30 in Unity. To build for Android, you would need to select Assets > Plugins > Android >
firebase-common-9.0.0.aar file and in the Unity Inspector, deselect
Android under the Platform for Plugins sections.
- Finally, edit the Bundle Identifier in your Player Settings and deploy your awesome project to your Android device.
m2repository 文件夹包含用于 android 工作室的 aar 文件。如果您查看一些示例应用程序 project.properties
文件,您会发现示例应用程序仍然引用 google-play-services_lib
。
希望对您有所帮助!
我遵循了这条路径 -> C:\Users\onat\AppData\Local\Android\sdk\extras\google\google_play_services
但我找不到我的项目的 google-play-services-lib
如果您还按照 <sdk>/extras/google/m2repository/com/google/android/gms
中找到它们。各个库采用 aar
格式,因此您必须自己提取 jar
。
您还可以使用此 site 上可用的版本历史将其降级回修订版 29。
也基于此forum:
We would never recommend you to rename/edit any part of the Android SDK. If you find any issues, do let us know and we would look into it. As to your Mobile Ads/Unity/Android integration, I will certainly help you. Please follow these steps if you are on Google Play Service revision 30.0 (v 9.0) -
- Make a new project and import the Mobile Ads Unity package.
- Copy our demo script, make a new empty GameObject and add the script as the component.
- Right click on Assets > PlayServicesResolver folder and select Google Play Services > Resolve Client Jars.
- There is a known issue with GMS revision 30 in Unity. To build for Android, you would need to select Assets > Plugins > Android > firebase-common-9.0.0.aar file and in the Unity Inspector, deselect Android under the Platform for Plugins sections.
- Finally, edit the Bundle Identifier in your Player Settings and deploy your awesome project to your Android device.
m2repository 文件夹包含用于 android 工作室的 aar 文件。如果您查看一些示例应用程序 project.properties
文件,您会发现示例应用程序仍然引用 google-play-services_lib
。
希望对您有所帮助!