除非您更新Google Play服务,否则将无法运行在地图上获取用户位置
当我点击“UPDATE”按钮时,它会在Logcat中给我这个错误
02-24 15:16:43.969 3958-3958/ahmed_smae.getuserlocationonmap E/DeferredLifecycleHelper: Failed to start resolution intent
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_11910000--ahmed_smae.getuserlocationonmap-1 flg=0x80000 pkg=com.android.vending }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1937)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1616)
at android.app.Activity.startActivityForResult(Activity.java:4487)
at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:67)
at android.app.Activity.startActivityForResult(Activity.java:4445)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:720)
at android.app.Activity.startActivity(Activity.java:4806)
at android.app.Activity.startActivity(Activity.java:4774)
at com.google.android.gms.dynamic.zzf.onClick(Unknown Source:4)
at android.view.View.performClick(View.java:6294)
at android.view.View$PerformClick.run(View.java:24770)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
任何帮助?
答案 0 :(得分:1)
我有同样的问题!您只需打开AVD Manager,创建一个新设备,但要注意选择一个具有Play商店徽标的设备。使用新设备运行您的应用,当您点击更新时,它会带您到Play商店,您可以在其中更新您的Google Play服务!