找不到类的android.app.AppOpsManager“,从法com.google.android.gms.common.GooglePlayServicesUtil.zza引用找不到、app、

2023-09-04 11:25:43 作者:你是天气

找不到类的android.app.AppOpsManager,从法com.google.android.gms.common.GooglePlayServicesUtil.zza引用

Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza

授权失败。请参阅https://developers.google.com/maps/documentation/android/start对于如何正确地设置地图。

Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.

在谷歌开发者控制台( https://console.developers.google.com )

In the Google Developer Console (https://console.developers.google.com)

确保谷歌地图Android的API V2已启用。

Ensure that the "Google Maps Android API v2" is enabled.

请确保以下的Andr​​oid主要存在:

Ensure that the following Android Key exists:

API密钥:

Android应用程序(;):FD:9E:49:CD:63:; com.xxx.xxx

Android Application (;): FD:9E:49:CD:63:;com.xxx.xxx

推荐答案

嗯,如果有人还是想知道......我有同样的问题,最后想通了。 AppOpsManager中添加了 API级别19 。请确保您的 targetSdkVersion 在AndroidManifest.xml中是正确的。

Well, if anyone is still wondering...I had the same issue and finally figured it out. AppOpsManager was added in API level 19. Make sure your targetSdkVersion in your AndroidManifest.xml is the right one.

 
精彩推荐
图片推荐