I'm getting "Error: buildToolsVersion is not specified" I've seen many people get this error but it has either been due to buildtooslversion not being specified in the module build.gradle or apply plugin being in the top level.
Top level build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
dependencies {
}
Module build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.2"
defaultConfig {
applicationId "com.tst.test_app"
minSdkVersion 9
targetSdkVersion 28
}
}
dependencies {
compile project(':test_app_lib')
compile 'com.google.android.gms:play-services-ads:9.6.1'
compile 'com.firebase:firebase-client-android:2.3.1'
compile 'com.google.firebase:firebase-core:9.6.0'
}
apply plugin: 'com.google.gms.google-services'
It's been a year since I touched this code. I previously built ok. I updated android studio and SDKs and switch to target SDK28. That's pretty much all I changed.