gradle / kotlin-dsl-samples

Samples builds using the Gradle Kotlin DSL
https://gradle.org/kotlin/
Other
3.71k stars 434 forks source link

Gradle 5.0 + Kotlin DSL + Android #1251

Closed jaredsburrows closed 6 years ago

jaredsburrows commented 6 years ago

Project:

https://github.com/jaredsburrows/android-gif-example

Repro:

Set the Gradle version to gradle-5.0-rc-3-all(Android 5+).

Error:

$ gradlew wrapper
Configuration on demand is an incubating feature.

> Configure project :
Support for gradle/project-schema.json was removed in Gradle 5.0. The file is no longer needed and it can be safely deleted.
e: /Users/<>/repo/android-gif-example/build.gradle.kts:42:1: Unresolved reference: android
e: /Users/<>/repo/android-gif-example/build.gradle.kts:43:5: Unresolved reference: compileSdkVersion
e: /Users/<>/repo/android-gif-example/build.gradle.kts:45:5: Unresolved reference: defaultConfig
e: /Users/<>/repo/android-gif-example/build.gradle.kts:46:9: Unresolved reference: applicationId
e: /Users/<>/repo/android-gif-example/build.gradle.kts:47:9: Unresolved reference: versionCode
e: /Users/<>/repo/android-gif-example/build.gradle.kts:48:9: Unresolved reference: versionName
e: /Users/<>/repo/android-gif-example/build.gradle.kts:49:9: Unresolved reference: minSdkVersion
e: /Users/<>/repo/android-gif-example/build.gradle.kts:50:9: Unresolved reference: targetSdkVersion
e: /Users/<>/repo/android-gif-example/build.gradle.kts:51:9: Unresolved reference: testApplicationId
e: /Users/<>/repo/android-gif-example/build.gradle.kts:52:9: Unresolved reference: testInstrumentationRunner
e: /Users/<>/repo/android-gif-example/build.gradle.kts:53:9: Unresolved reference: testInstrumentationRunnerArgument
e: /Users/<>/repo/android-gif-example/build.gradle.kts:54:9: Unresolved reference: resConfigs
e: /Users/<>/repo/android-gif-example/build.gradle.kts:55:9: Unresolved reference: vectorDrawables
e: /Users/<>/repo/android-gif-example/build.gradle.kts:58:5: Unresolved reference: compileOptions
e: /Users/<>/repo/android-gif-example/build.gradle.kts:59:9: Unresolved reference: setSourceCompatibility
e: /Users/<>/repo/android-gif-example/build.gradle.kts:60:9: Unresolved reference: setTargetCompatibility
e: /Users/<>/repo/android-gif-example/build.gradle.kts:63:5: Unresolved reference: dexOptions
e: /Users/<>/repo/android-gif-example/build.gradle.kts:65:5: Unresolved reference: sourceSets
e: /Users/<>/repo/android-gif-example/build.gradle.kts:67:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:68:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:71:5: Unresolved reference: lintOptions
e: /Users/<>/repo/android-gif-example/build.gradle.kts:72:9: Unresolved reference: textReport
e: /Users/<>/repo/android-gif-example/build.gradle.kts:73:9: Unresolved reference: textOutput
e: /Users/<>/repo/android-gif-example/build.gradle.kts:74:9: Unresolved reference: isCheckAllWarnings
e: /Users/<>/repo/android-gif-example/build.gradle.kts:75:9: Unresolved reference: isWarningsAsErrors
e: /Users/<>/repo/android-gif-example/build.gradle.kts:76:9: Unresolved reference: lintConfig
e: /Users/<>/repo/android-gif-example/build.gradle.kts:77:9: Unresolved reference: isCheckReleaseBuilds
e: /Users/<>/repo/android-gif-example/build.gradle.kts:78:9: Unresolved reference: isCheckTestSources
e: /Users/<>/repo/android-gif-example/build.gradle.kts:81:5: Unresolved reference: signingConfigs
e: /Users/<>/repo/android-gif-example/build.gradle.kts:82:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:83:13: Unresolved reference: storeFile
e: /Users/<>/repo/android-gif-example/build.gradle.kts:84:13: Unresolved reference: storePassword
e: /Users/<>/repo/android-gif-example/build.gradle.kts:85:13: Unresolved reference: keyAlias
e: /Users/<>/repo/android-gif-example/build.gradle.kts:86:13: Unresolved reference: keyPassword
e: /Users/<>/repo/android-gif-example/build.gradle.kts:90:5: Unresolved reference: buildTypes
e: /Users/<>/repo/android-gif-example/build.gradle.kts:91:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:92:13: Unresolved reference: applicationIdSuffix
e: /Users/<>/repo/android-gif-example/build.gradle.kts:94:13: Unresolved reference: buildConfigField
e: /Users/<>/repo/android-gif-example/build.gradle.kts:98:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:99:13: Unresolved reference: isMinifyEnabled
e: /Users/<>/repo/android-gif-example/build.gradle.kts:100:13: Unresolved reference: isShrinkResources
e: /Users/<>/repo/android-gif-example/build.gradle.kts:101:13: Unresolved reference: proguardFile
e: /Users/<>/repo/android-gif-example/build.gradle.kts:101:26: Unresolved reference: getDefaultProguardFile
e: /Users/<>/repo/android-gif-example/build.gradle.kts:102:13: Unresolved reference: proguardFile
e: /Users/<>/repo/android-gif-example/build.gradle.kts:103:13: Unresolved reference: signingConfig
e: /Users/<>/repo/android-gif-example/build.gradle.kts:103:29: Unresolved reference: signingConfigs
e: /Users/<>/repo/android-gif-example/build.gradle.kts:105:13: Unresolved reference: buildConfigField
e: /Users/<>/repo/android-gif-example/build.gradle.kts:109:5: Unresolved reference: testOptions
e: /Users/<>/repo/android-gif-example/build.gradle.kts:110:9: Unresolved reference: animationsDisabled
e: /Users/<>/repo/android-gif-example/build.gradle.kts:111:9: Unresolved reference: unitTests
e: /Users/<>/repo/android-gif-example/build.gradle.kts:112:13: Unresolved reference: isReturnDefaultValues
e: /Users/<>/repo/android-gif-example/build.gradle.kts:113:13: Unresolved reference: isIncludeAndroidResources
e: /Users/<>/repo/android-gif-example/build.gradle.kts:115:9: Unresolved reference: execution
e: /Users/<>/repo/android-gif-example/build.gradle.kts:119:5: Unresolved reference: packagingOptions
e: /Users/<>/repo/android-gif-example/build.gradle.kts:120:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:121:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:122:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:123:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:124:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:125:9: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:137:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:138:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:139:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:140:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:141:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:142:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:143:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:144:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:145:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:146:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:147:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:148:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:149:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:150:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:151:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:152:5: Unresolved reference: implementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:154:5: Unresolved reference: kapt
e: /Users/<>/repo/android-gif-example/build.gradle.kts:155:5: Unresolved reference: kapt
e: /Users/<>/repo/android-gif-example/build.gradle.kts:156:5: Unresolved reference: kapt
e: /Users/<>/repo/android-gif-example/build.gradle.kts:158:5: Unresolved reference: debugImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:159:5: Unresolved reference: releaseImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:161:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:162:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:163:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:164:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:164:59: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:165:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:166:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:167:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:168:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:168:69: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:169:5: Unresolved reference: androidTestImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:171:5: Unresolved reference: androidTestUtil
e: /Users/<>/repo/android-gif-example/build.gradle.kts:173:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:174:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:175:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:176:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:176:52: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl
e: /Users/<>/repo/android-gif-example/build.gradle.kts:177:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:178:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:179:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:180:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:181:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:182:5: Unresolved reference: testImplementation
e: /Users/<>/repo/android-gif-example/build.gradle.kts:185:1: Unresolved reference: kapt
e: /Users/<>/repo/android-gif-example/build.gradle.kts:186:5: Unresolved reference: useBuildCache

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/<>/repo/android-gif-example/build.gradle.kts' line: 42

* What went wrong:
Script compilation errors:

Line 042: android {
^ Unresolved reference: android

Line 043:     compileSdkVersion(extra["compileSdkVersion"] as Int)
^ Unresolved reference: compileSdkVersion

Line 045:     defaultConfig {
^ Unresolved reference: defaultConfig

Line 046:         applicationId = "burrows.apps.example.gif"
^ Unresolved reference: applicationId

Line 047:         versionCode = 1
^ Unresolved reference: versionCode

Line 048:         versionName = "1.0"
^ Unresolved reference: versionName

Line 049:         minSdkVersion(extra["minSdkVersion"] as Int)
^ Unresolved reference: minSdkVersion

Line 050:         targetSdkVersion(extra["targetSdkVersion"] as Int)
^ Unresolved reference: targetSdkVersion

Line 051:         testApplicationId = "burrows.apps.example.gif.test"
^ Unresolved reference: testApplicationId

Line 052:         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
^ Unresolved reference: testInstrumentationRunner

Line 053:         testInstrumentationRunnerArgument("disableAnalytics", "true")
^ Unresolved reference: testInstrumentationRunnerArgument

Line 054:         resConfigs("en")
^ Unresolved reference: resConfigs

Line 055:         vectorDrawables.useSupportLibrary = true
^ Unresolved reference: vectorDrawables

Line 058:     compileOptions {
^ Unresolved reference: compileOptions

Line 059:         setSourceCompatibility(extra["javaVersion"])
^ Unresolved reference: setSourceCompatibility

Line 060:         setTargetCompatibility(extra["javaVersion"])
^ Unresolved reference: setTargetCompatibility

Line 063:     dexOptions.preDexLibraries = !(extra["ci"] as Boolean)
^ Unresolved reference: dexOptions

Line 065:     sourceSets {
^ Unresolved reference: sourceSets

Line 067:         getByName("androidTest").java.srcDirs("src/androidTest/java", commonTest)
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl

Line 068:         getByName("test").java.srcDirs("src/test/java", commonTest)
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl

Line 071:     lintOptions {
^ Unresolved reference: lintOptions

Line 072:         textReport = true
^ Unresolved reference: textReport

Line 073:         textOutput("stdout")
^ Unresolved reference: textOutput

Line 074:         isCheckAllWarnings = true
^ Unresolved reference: isCheckAllWarnings

Line 075:         isWarningsAsErrors = true
^ Unresolved reference: isWarningsAsErrors

Line 076:         lintConfig = file("config/lint/lint.xml")
^ Unresolved reference: lintConfig

Line 077:         isCheckReleaseBuilds = false
^ Unresolved reference: isCheckReleaseBuilds

Line 078:         isCheckTestSources = true
^ Unresolved reference: isCheckTestSources

Line 081:     signingConfigs {
^ Unresolved reference: signingConfigs

Line 082:         getByName("debug") {
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl

Line 083:             storeFile = file("config/signing/debug.keystore")
^ Unresolved reference: storeFile

Line 084:             storePassword = extra["debugKeystorePass"] as String
^ Unresolved reference: storePassword

Line 085:             keyAlias = extra["debugKeystoreUser"] as String
^ Unresolved reference: keyAlias

Line 086:             keyPassword = extra["debugKeystorePass"] as String
^ Unresolved reference: keyPassword

Line 090:     buildTypes {
^ Unresolved reference: buildTypes

Line 091:         getByName("debug") {
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl

Line 092:             applicationIdSuffix = ".debug"
^ Unresolved reference: applicationIdSuffix

Line 094:             buildConfigField("String", "BASE_URL", if (extra["ci"] as Boolean) "\"http://localhost:8080\"" else "\"https://api.riffsy.com\"")
^ Unresolved reference: buildConfigField

Line 098:         getByName("release") {
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun <T : Any> NamedDomainObjectCollection<out Any>.getByName(name: String, type: KClass<TypeVariable(T)>, configure: TypeVariable(T).() -> Unit): TypeVariable(T) defined in org.gradle.kotlin.dsl
public inline fun <reified T : Any> ExtensionContainer.getByName(name: String): TypeVariable(T) defined in org.gradle.kotlin.dsl

Line 099:             isMinifyEnabled = true
^ Unresolved reference: isMinifyEnabled

Line 100:             isShrinkResources = true
^ Unresolved reference: isShrinkResources

Line 101:             proguardFile(getDefaultProguardFile("proguard-android-optimize.txt"))
^ Unresolved reference: proguardFile

Line 101:             proguardFile(getDefaultProguardFile("proguard-android-optimize.txt"))
^ Unresolved reference: getDefaultProguardFile

Line 102:             proguardFile(file("config/proguard/proguard-rules.txt"))
^ Unresolved reference: proguardFile

Line 103:             signingConfig = signingConfigs.getByName("debug")
^ Unresolved reference: signingConfig

Line 103:             signingConfig = signingConfigs.getByName("debug")
^ Unresolved reference: signingConfigs

Line 105:             buildConfigField("String", "BASE_URL", "\"https://api.riffsy.com\"")
^ Unresolved reference: buildConfigField

Line 109:     testOptions {
^ Unresolved reference: testOptions

Line 110:         animationsDisabled = true
^ Unresolved reference: animationsDisabled

Line 111:         unitTests.apply {
^ Unresolved reference: unitTests

Line 112:             isReturnDefaultValues = true
^ Unresolved reference: isReturnDefaultValues

Line 113:             isIncludeAndroidResources = true
^ Unresolved reference: isIncludeAndroidResources

Line 115:         execution = "ANDROIDX_TEST_ORCHESTRATOR"
^ Unresolved reference: execution

Line 119:     packagingOptions {
^ Unresolved reference: packagingOptions

Line 120:         exclude("**/*.kotlin_module")
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 121:         exclude("**/*.version")
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 122:         exclude("**/kotlin/**")
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 123:         exclude("**/*.txt")
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 124:         exclude("**/*.xml")
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 125:         exclude("**/*.properties")
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 137:     implementation(extra["material"] as String)
^ Unresolved reference: implementation

Line 138:     implementation(extra["constraintLayout"] as String)
^ Unresolved reference: implementation

Line 139:     implementation(extra["kotlinStdlib"] as String)
^ Unresolved reference: implementation

Line 140:     implementation(extra["okhttp"] as String)
^ Unresolved reference: implementation

Line 141:     implementation(extra["loggingInterceptor"] as String)
^ Unresolved reference: implementation

Line 142:     implementation(extra["adapterRxjava2"] as String)
^ Unresolved reference: implementation

Line 143:     implementation(extra["converterMoshi"] as String)
^ Unresolved reference: implementation

Line 144:     implementation(extra["moshiAdapters"] as String)
^ Unresolved reference: implementation

Line 145:     implementation(extra["retrofit"] as String)
^ Unresolved reference: implementation

Line 146:     implementation(extra["rxAndroid"] as String)
^ Unresolved reference: implementation

Line 147:     implementation(extra["rxJava"] as String)
^ Unresolved reference: implementation

Line 148:     implementation(extra["glide"] as String)
^ Unresolved reference: implementation

Line 149:     implementation(extra["okhttp3Integration"] as String)
^ Unresolved reference: implementation

Line 150:     implementation(extra["dagger"] as String)
^ Unresolved reference: implementation

Line 151:     implementation(extra["daggerAndroid"] as String)
^ Unresolved reference: implementation

Line 152:     implementation(extra["daggerAndroidSupport"] as String)
^ Unresolved reference: implementation

Line 154:     kapt(extra["daggerCompiler"] as String)
^ Unresolved reference: kapt

Line 155:     kapt(extra["daggerAndroidProcessor"] as String)
^ Unresolved reference: kapt

Line 156:     kapt(extra["glideCompiler"] as String)
^ Unresolved reference: kapt

Line 158:     debugImplementation(extra["leakcanaryAndroid"] as String)
^ Unresolved reference: debugImplementation

Line 159:     releaseImplementation(extra["leakcanaryAndroidNoOp"] as String)
^ Unresolved reference: releaseImplementation

Line 161:     androidTestImplementation(extra["junit"] as String)
^ Unresolved reference: androidTestImplementation

Line 162:     androidTestImplementation(extra["androidXCore"] as String)
^ Unresolved reference: androidTestImplementation

Line 163:     androidTestImplementation(extra["androidXJunit"] as String)
^ Unresolved reference: androidTestImplementation

Line 164:     androidTestImplementation(extra["truth"] as String) { exclude(module = "checker-qual") }
^ Unresolved reference: androidTestImplementation

Line 164:     androidTestImplementation(extra["truth"] as String) { exclude(module = "checker-qual") }
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 165:     androidTestImplementation(extra["runner"] as String)
^ Unresolved reference: androidTestImplementation

Line 166:     androidTestImplementation(extra["espressoCore"] as String)
^ Unresolved reference: androidTestImplementation

Line 167:     androidTestImplementation(extra["espressoIntents"] as String)
^ Unresolved reference: androidTestImplementation

Line 168:     androidTestImplementation(extra["espressoContrib"] as String) { exclude(group = "com.android.support") }
^ Unresolved reference: androidTestImplementation

Line 168:     androidTestImplementation(extra["espressoContrib"] as String) { exclude(group = "com.android.support") }
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 169:     androidTestImplementation(extra["mockwebserver"] as String)
^ Unresolved reference: androidTestImplementation

Line 171:     androidTestUtil(extra["orchestrator"] as String)
^ Unresolved reference: androidTestUtil

Line 173:     testImplementation(extra["junit"] as String)
^ Unresolved reference: testImplementation

Line 174:     testImplementation(extra["androidXCore"] as String)
^ Unresolved reference: testImplementation

Line 175:     testImplementation(extra["androidXJunit"] as String)
^ Unresolved reference: testImplementation

Line 176:     testImplementation(extra["truth"] as String) { exclude(module = "checker-qual") }
^ Unresolved reference: testImplementation

Line 176:     testImplementation(extra["truth"] as String) { exclude(module = "checker-qual") }
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public fun Configuration.exclude(group: String? = ..., module: String? = ...): Configuration defined in org.gradle.kotlin.dsl

Line 177:     testImplementation(extra["mockitoKotlin"] as String)
^ Unresolved reference: testImplementation

Line 178:     testImplementation(extra["mockitoInline"] as String)
^ Unresolved reference: testImplementation

Line 179:     testImplementation(extra["leakcanaryAndroidNoOp"] as String)
^ Unresolved reference: testImplementation

Line 180:     testImplementation(extra["mockwebserver"] as String)
^ Unresolved reference: testImplementation

Line 181:     testImplementation(extra["reflections"] as String)
^ Unresolved reference: testImplementation

Line 182:     testImplementation(extra["robolectric"] as String)
^ Unresolved reference: testImplementation

Line 185: kapt {
^ Unresolved reference: kapt

Line 186:     useBuildCache = true
^ Unresolved reference: useBuildCache

106 errors

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
kles4enko commented 6 years ago

I suppose that stable version of Android Gradle Plugin doesn't support Gradle 5. You can try AGP version 3.3.0-beta04?

eskatos commented 6 years ago

Thanks for the report @jaredsburrows. Your build is using the legacy support for gradle/project-schema.json that got removed in gradle/kotlin-dsl 1.0.

I just opened a PR to upgrade your build to Gradle 5 https://github.com/jaredsburrows/android-gif-example/pull/85. It includes further changes to fix another breakage with AGP.

jaredsburrows commented 6 years ago

Thanks @eskatos for taking a look.