Skip to content

Release app bundle failed to strip debug symbols from native libraries #169443

@yourengineerbro

Description

@yourengineerbro

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:
Image

flutter doctor:
No issues found
Attached image:

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.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions