https://kotlinlang.org logo
#android
Title
# android
j

jurajsolarml

09/27/2018, 7:19 AM
Hello,please help.I have new a bug.I've upgraded the AS to 3.2.Kotlin 1.2.71. API 28.How can I fix it? Thanks Gradle DSL method not found: 'compileSdkVersion()' Possible causes:<ul><li>The project 'Old_error_cardview' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0). Upgrade plugin to version 3.2.0 and sync project</li><li>The project 'Old_error_cardview' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file</li><li>The build file may be missing a Gradle plugin. Apply Gradle plugin</li>
l

louis993546

09/27/2018, 7:26 AM
j

jurajsolarml

09/27/2018, 7:43 AM
👍
I have new bug 😞 Thanks Could not find method productFlavors() for arguments [build_7vk1a90hbccdh3f295ghwmeym$_run_closure2$_closure4@1afcf289] on object of type org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension. https://hastebin.com/dakidaqoqa.bash
g

gildor

09/27/2018, 8:02 AM
But this DSL is part of
android {}
dsl
j

jurajsolarml

09/27/2018, 8:09 AM
What do you mean by DSL? I'm just a beginner. Thanks
g

gildor

09/27/2018, 8:11 AM
Move productFlavors inside of
android
block
I actually don’t understand why do you use
ext
j

jurajsolarml

09/27/2018, 8:16 AM
ok,Thanks
3 Views