Could not find com.android.tools.lint:lint-gradle:26.1.2.
とかでエラーが出た場合は、プロジェクトの build.gradle を修正する
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
}
}
allprojects {
repositories {
// google 先生が追加されますた
google()
jcenter()
}
}
追記: jcenter と google の位置関係は、google を先にした方が良いようです。
gradle:3.1.3 と記述している箇所は、どんどんバージョンが上がります。
0 件のコメント:
コメントを投稿