Android 2.3.3 -> 3.2.1へのアップグレードで以下の質問をしていますが、別に独立した質問とします。
https://teratail.com/questions/156215
以下のbuild.gradle(app側)で★の部分について、
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:27.1.1' compile 'com.android.support:design:27.1.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' testCompile 'junit:junit:4.12' compile 'se.emilsjolander:StickyScrollViewItems:1.1.0' compile 'com.fasterxml.jackson.core:jackson-databind:2.3.4' compile 'org.apmem.tools:layouts:1.10' compile 'com.google.android.gms:play-services:12.0.1' ★ }
com.google.android.gms:play-servicesを例えば16.0.4にすると、以下のログが表示されます。
Failed to resolve: com.google.android.gms:play-services:16.0.4 Install Repository and sync project
上記をクリックすると下図のようなエラーがポップアップしました。
build.gradle(プロジェクト側)には下記のようにgoogle()は記載しています。
何か他に原因があるのでしょうか?
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:3.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url 'https://maven.google.com/' } maven { url "https://jitpack.io" } jcenter() google() } } task clean(type: Delete) { delete rootProject.buildDir }
◆追記1
Tool > SDK Manager > SDK Toolsは以下のようになっています。
◆追記2
試しに新規のプロジェクトをEmpty Activityで作りましたが、
compile 'com.google.android.gms:play-services:16.0.4'を付与すると同様に
ポップアップエラーが出ました。

下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
また依頼した内容が修正された場合は、修正依頼を取り消すようにしましょう。
2018/11/06 10:03