Last active
October 28, 2024 09:58
-
-
Save sintret/29b6d66900dfb6333efb57c875e76589 to your computer and use it in GitHub Desktop.
flutter gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
you can add this to the end of your app/build.gradle: | |
task printSdkVersions { | |
doLast { | |
println "The current compileSdkVersion is: ${android.compileSdkVersion}" | |
println "The current targetSdkVersion is: ${android.defaultConfig.targetSdkVersion}" | |
println "The current minSdkVersion is: ${android.defaultConfig.minSdkVersion}" | |
} | |
} | |
gradlew printSdkVersions | |
jvm and kotlin di graddle | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
kotlinOptions { | |
jvmTarget = '1.8' | |
} | |
##update and upgrade flutter and sdk | |
flutter channel master | |
flutter upgrade | |
#for Windows user | |
choco upgrade dart-sdk | |
for Mac users if you user brew to install dart | |
#mac user | |
brew upgrade dart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment