// App-level build.gradle plugins { id "kotlin-android" // Apply the Kotlin plugin first id "com.android.application" id 'com.google.gms.google-services' // Firebase plugin id "dev.flutter.flutter-gradle-plugin" // Apply the Flutter Gradle plugin last } android { namespace = "com.example.tugasakhir" compileSdk = 34 // Updated compileSdkVersion to 34 ndkVersion = flutter.ndkVersion defaultConfig { applicationId = "com.example.tugasakhir" minSdk = 21 // Ensure this is set to at least 21 targetSdk = 34 // Set targetSdkVersion to match compileSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName } compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } buildTypes { release { signingConfig = signingConfigs.debug } } } flutter { source = "../.." }