2017-02-03 8 views
0

Androidスタジオでエミュレータを実行すると問題が発生します。エミュレータから「Google Playサービスを更新しない限りGoogleマップAPIデモは実行されません」と表示されます。Google Playサービスを更新しない限り、Google Map APIデモは実行されません

--------- beginning of crash 02-03 13:29:47.762 2870-2870/com.example.xxx_000.googlemapapidemo E/AndroidRuntime: FATAL EXCEPTION: main 
                         Process: com.example.xxx_000.googlemapapidemo, PID: 2870 
                         android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_9683000--- flg=0x80000 pkg=com.android.vending } 
                          at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1798) 
                          at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512) 
                          at android.app.Activity.startActivityForResult(Activity.java:3917) 
                          at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:48) 
                          at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:75) 
                          at android.app.Activity.startActivityForResult(Activity.java:3877) 
                          at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:856) 
                          at android.app.Activity.startActivity(Activity.java:4200) 
                          at android.app.Activity.startActivity(Activity.java:4168) 
                          at com.google.android.gms.dynamic.zza$5.onClick(Unknown Source) 
                          at android.view.View.performClick(View.java:5198) 
                          at android.view.View$PerformClick.run(View.java:21147) 
                          at android.os.Handler.handleCallback(Handler.java:739) 
                          at android.os.Handler.dispatchMessage(Handler.java:95) 
                          at android.os.Looper.loop(Looper.java:148) 
                          at android.app.ActivityThread.main(ActivityThread.java:5417) 
                          at java.lang.reflect.Method.invoke(Native Method) 
                          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 02-03 13:29:49.877 2870-2870/com.example.xxx_000.googlemapapidemo I/Process: Sending signal. PID: 2870 SIG: 9 02-03 13:35:13.441 5142-5142/com.example.xxx_000.googlemapapidemo W/System: ClassLoader referenced unknown path: /data/app/com.example.xxx_000.googlemapapidemo-1/lib/x86 02-03 13:35:13.504 5142-5142/com.example.xxx_000.googlemapapidemo I/FirebaseInitProvider: FirebaseApp initialization unsuccessful 02-03 13:35:13.713 5142-5142/com.example.xxx_000.googlemapapidemo W/GooglePlayServicesUtil: Google Play services out of date. Requires 9683000 but found 9452470 02-03 13:35:13.726 5142-5142/com.example.xxx_000.googlemapapidemo ... 5142-5261/com.example.xxx_000.googlemapapidemo D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 

私のbuild.gradleファイルはこのようなものです:私は、このエラーメッセージが表示さ

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.2" 

    defaultConfig { 
     applicationId "com.example.xxx_000.googlemapapidemo" 
     minSdkVersion 17 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    dexOptions { 
     javaMaxHeapSize "2g" 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.2.1' 
    compile 'com.google.android.gms:play-services:9.6.1' 
} 

誰も私を助けることができますか?ありがとうございました!

+0

実際のデバイスで試してみてください。あなたのエミュレータにプレイサービスのインストールがありません –

+0

オハイオ州オハイオ州。私は実際のデバイスで試してみます。どうもありがとうございます! – Jane

+0

これは、プレイサービスのインストールと同じかそれ以上のバージョンの9.6,1のデバイスで動作します。 –

答えて

0

エミュレータを更新し、(with Google APIs)というAPIレベルで作成するか、実際のデバイスを使用してください。

+0

エミュレータを更新するにはどうすればよいですか? sdkマネージャーで? – Jane

+0

とにかく最新のものかもしれませんが、新しいものを作成する前にチェックする価値があります。 – ditn

+0

私は自分のsdkマネージャーをチェックし、すべてが更新されました。だから、私は再生をクリックし、 "Create New Emulator"をクリックして、(Google APIを使って)APIレベルで新しいエミュレータを作成しますか?私はそれを見ない。 – Jane

関連する問題