-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Type of Request
infra task
Infrastructure Environment
Command ran: flutter build appbundle
Error:
Release app bundle failed to strip debug symbols from native libraries.
Attached image:

flutter doctor:
No issues found
Attached image:
Project directory: C:\myweb
Android/app/build.gradle.kts:
`
import java.io.FileInputStream
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
val f = "C:/upload-keystore.jks"
android {
namespace = "com.yourengineerbro.myweb"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.yourengineerbro.myweb"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
signingConfigs {
create("release") {
keyAlias = "uploadkey"
keyPassword = "password"
storeFile = f?.let { file(it) }
storePassword = "password"
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("release")
}
}
}
flutter {
source = "../.."
}`
What is happening?
Release build is not getting generated.
Steps to reproduce
Step 1: Install the latest Flutter SDK (as of time of creating this issue) and create a sample-template project.
Step 2: Add the signing code in Android/App/build.gradle.kts
Step 3: Run flutter build appbundle in release mode.
Operating system: Windows 10 home
Expected results
I expect to get the app bundle (.aab) file generated at the execution of flutter build appbundle.
