2016-10-24 11 views
-2

の問題:私は私のエミュレータでマップを見ることができます私はこのチュートリアルで使用のGradle

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.3" 

    defaultConfig { 
     applicationId "com.example.amine.myapplicationmapamine" 
     minSdkVersion 15 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

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

:これは私のGradleファイルですdevelopers.google.com/maps/documentation/android-api/start
をが、それははっきりしていないと、私はこのエラーを取得:

enter image description here

enter image description here

+0

:compile 'com.google.android.gms:play-services:9.8.00'
を交換するあなたがあなたの 'LIBS' フォルダ内のjarファイルを持っていますか? –

+0

質問を編集して詳細を追加し、下記の「回答」を削除してください –

+0

これらの「メッセージ」にはエラーは表示されません。私の答えでは、アプリケーションをビルドして実行することができます。私は地図の問題が何であるか分かりません –

答えて

1

ありますこれに完全に回答するには詳細が十分ではありませんが、Google Playサービスの正しいバージョンを使用することをおすすめします。

このチュートリアルではこれを使用していないため、この行をどこから取得したのか不明です。

compile 'com.google.android.gms:play-services:9.8.00' 

The latestこれです。あなたは余分な0

compile 'com.google.android.gms:play-services-maps:9.8.0' 

を持っているように見える。また、あなたは多かれ少なかれからコピーすることができるとチュートリアルから来working sample apps on Githubがあります。

そして、私はconfiguration pageが実際の開始ページよりも「開始しています」と感じています。

1

:compile 'com.google.android.gms:play-services:9.8.0'

関連する問題