xamarin - 应用正在使用旧版本的 Google Play Developer API
问题描述
我正在开发一个 Xamarin Forms 应用程序,它只对 Maps 和 GeoLocation API 进行了几次调用。我在我的应用程序中使用以下包。
GeoCoordinate.NetCore {1.0.0.1}
Microsoft.AspNetCore.SignalR.Client {1.1.0}
Microsoft.Azure.EventGrid {3.2.0}
Newtonsoft.Json {12.0.2}
SearchPlaces {1.0.0}
UXDivers.GorillaPlayer.SDK {1.5.2}
UXDivers.GorillaPlayer.SDK.AutoC... {1.5.0-Beta4}
Xam.Plugin.Geolocator {4.5.0.6}
Xamarin.Android.Support.Vector.D... {28.0.0.1}
Xamarin.Forms {4.2.0.709249}
Xamarin.Android.Support.Design {28.0.0.1}
Xamarin.Android.Support.v7.AppCo... {28.0.0.1}
Xamarin.Android.Support.v4 {28.0.0.1}
Xamarin.Android.Support.v7.CardView {28.0.0.1}
Xamarin.Android.Support.v7.Media... {28.0.0.1}
Xamarin.Android.Support.Core.Utils {28.0.0.1}
Xamarin.Android.Support.CustomTabs {28.0.0.1}
Xamarin.Essentials {1.2.0}
Xamarin.Forms.Maps {4.2.0.709249}
当我将此应用程序上传到 Google Play 进行发布时,我看到以下警告:
We’ve detected that your app is using an old version of the Google Play Developer API. From December 1 2019, versions 1 and 2 of this API will no longer be available. Update to version 3 before this date. Learn more
据我所知,我的代码中没有任何内容使用Google Play Developer API
. 最近我可以看到我使用 Google API 来自一个名为 3rd 的包SearchPlaces
,它使用以下代码从搜索文本中建议位置。
string CreatePredictionsUri(string newTextValue)
{
var url = "https://maps.googleapis.com/maps/api/place/autocomplete/json";
var input = Uri.EscapeUriString(newTextValue);
var pType = PlaceTypeValue(placeType);
var constructedUrl = $"{url}?input={input}&types={pType}&key={apiKey}";
if (locationBias != null)
constructedUrl = constructedUrl + locationBias;
if (components != null)
constructedUrl += components;
return constructedUrl;
}
有人可以帮我理解为什么我在我的应用程序的谷歌播放控制台中收到此警告。
更新 1
只是想补充一点,我的清单中也有这个
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="<my API Key>" />
解决方案
推荐阅读
- jgrapht - Inserting a vertex in a GraphPath in Jgrapht
- python - 同一迭代中的 TensorFlow 多个 session.run()
- javascript - 如何拖动带有标题的 iframe 以及最小化和最大化选项
- facebook - 如何创建 Facebook 表单帖子
- java - 在 j2ee 应用程序的前端获取数据的最佳方法是什么?
- android - 将 android Build Tools 修订版更新到 28.0.3
- reactjs - 为什么这不会重新获取查询?
- reactjs - 如果输入处于活动状态,为什么我无法一键提交此表单?
- python - pytest:固定装置作为函数参数
- sql - SQL Oracle - 从文件中选择超过 1000 行