android - This app won't run unless you update Google Play Services (via Bazaar) -


i'm testing out new google maps api v2 android, , i'm getting message when app launches:

mainactivity showing error message

this running on 4.1 emulator.

here androidmanifest.xml file:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.maptest"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="15" />      <permission         android:name="com.example.maptest.permission.maps_receive"         android:protectionlevel="signature"/>     <uses-permission android:name="com.example.maptest.permission.maps_receive"/>     <uses-permission android:name="com.google.android.providers.gsf.permission.read_gservices"/>     <uses-permission android:name="android.permission.internet"/>     <uses-permission android:name="android.permission.write_external_storage"/>     <uses-permission android:name="android.permission.access_coarse_location"/>     <uses-permission android:name="android.permission.access_fine_location"/>      <!-- require opengl es version 2 -->     <uses-feature           android:glesversion="0x00020000"           android:required="true"/>      <application         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >          <activity             android:name=".mainactivity"             android:label="@string/title_activity_main" >             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>          <meta-data             android:name="com.google.android.maps.v2.api_key"             android:value="##myapikey##"/>      </application> </manifest> 

file mainactivity.java:

public class mainactivity extends activity {      @override     public void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_main);     }      @override     public boolean oncreateoptionsmenu(menu menu) {         getmenuinflater().inflate(r.menu.activity_main, menu);         return true;     } } 

file activity_main.xml

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent" >      <fragment xmlns:android="http://schemas.android.com/apk/res/android"         android:id="@+id/map"         android:layout_width="match_parent"         android:layout_height="match_parent"         class="com.google.android.gms.maps.mapfragment"/> </relativelayout> 

clicking "update" crashes app following stacktrace:

e/trace(1034): error opening trace file: no such file or directory (2) w/googleplayservicesutil(1034): google play services out of date.  requires 2010100 found 1 w/googleplayservicesutil(1034): google play services out of date.  requires 2010100 found 1 w/googleplayservicesutil(1034): google play services out of date.  requires 2010100 found 1 w/googleplayservicesutil(1034): google play services out of date.  requires 2010100 found 1 w/googleplayservicesutil(1034): google play services out of date.  requires 2010100 found 1 w/googleplayservicesutil(1034): google play services out of date.  requires 2010100 found 1 d/gralloc_goldfish(1034): emulator without gpu emulation detected. d/androidruntime(1034): shutting down vm w/dalvikvm(1034): threadid=1: thread exiting uncaught exception (group=0x40a13300)  e/androidruntime(1034): fatal exception: main e/androidruntime(1034): android.content.activitynotfoundexception: no activity found handle intent   { act=android.intent.action.view dat=http://play.google.com/store/apps/details? \   id=com.google.android.apps.bazaar flg=0x80000 pkg=com.android.vending } e/androidruntime(1034):     @ android.app.instrumentation.checkstartactivityresult(instrumentation.java:1545) e/androidruntime(1034):     @ android.app.instrumentation.execstartactivity(instrumentation.java:1416) e/androidruntime(1034):     @ android.app.activity.startactivityforresult(activity.java:3351) e/androidruntime(1034):     @ android.app.activity.startactivityforresult(activity.java:3312) e/androidruntime(1034):     @ android.app.activity.startactivity(activity.java:3522) e/androidruntime(1034):     @ android.app.activity.startactivity(activity.java:3490) e/androidruntime(1034):     @ com.google.android.gms.internal.c$2.onclick(unknown source) e/androidruntime(1034):     @ android.view.view.performclick(view.java:4084) e/androidruntime(1034):     @ android.view.view$performclick.run(view.java:16966) e/androidruntime(1034):     @ android.os.handler.handlecallback(handler.java:615) e/androidruntime(1034):     @ android.os.handler.dispatchmessage(handler.java:92) e/androidruntime(1034):     @ android.os.looper.loop(looper.java:137) e/androidruntime(1034):     @ android.app.activitythread.main(activitythread.java:4745) e/androidruntime(1034):     @ java.lang.reflect.method.invokenative(native method) e/androidruntime(1034):     @ java.lang.reflect.method.invoke(method.java:511) e/androidruntime(1034):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:786) e/androidruntime(1034):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) e/androidruntime(1034):     @ dalvik.system.nativestart.main(native method) 

i've referenced google play services project. doing wrong here?

according a discussion android developers on google+, running new map api on emulator not possible @ moment.

(the comment zhelyazko atanasov yesterday @ 23:18, don't know how link directly it)

also, don't see "(via bazaar)" part when running actual device, , update button open play store. assuming bazaar meant provide google play services on android emulator, not ready yet...


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -