Skip to content

fix: shorebird release android failed #67

Description

@ChidSamiappan

Description
I am trying to release the Flutter POC app very first time. flutter doctor and shorebird doctor was 100% sccuess.

A clear and concise description of what the bug is.
Warning: Flutter support for your project's Gradle version (8.14.0) will soon be dropped. Please upgrade your Gradle version to a version of at least 9.1.0 soon.
Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check.

Potential fix: Your project's gradle version is typically defined in the gradle wrapper file. By default, this can be found at /Users/Shared/POC/sblearningapp/shorebirdapp/android/gradle/wrapper/gradle-wrapper.properties.
For more information, see https://docs.gradle.org/current/userguide/gradle_wrapper.html.

Warning: Flutter support for your project's Android Gradle Plugin version (Android Gradle Plugin version 8.11.1) will soon be dropped. Please upgrade your Android Gradle Plugin version to a version of at least Android Gradle Plugin version 9.0.1 soon.
Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check.

Potential fix: Your project's AGP version is typically defined in the plugins block of the settings.gradle file (/Users/Shared/POC/sblearningapp/shorebirdapp/android/settings.gradle), by a plugin with the id of com.android.application.
If you don't see a plugins block, your project was likely created with an older template version. In this case it is most likely defined in the top-level build.gradle file (/Users/Shared/POC/sblearningapp/shorebirdapp/android/build.gradle) by the following line in the dependencies block of the buildscript: "classpath 'com.android.tools.build:gradle:'".

Warning: Flutter support for your project's Kotlin version (2.2.20) will soon be dropped. Please upgrade your Kotlin version to a version of at least 2.3.20 soon.
Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check.

Potential fix: Your project's KGP version is typically defined in the plugins block of the settings.gradle file (/Users/Shared/POC/sblearningapp/shorebirdapp/android/settings.gradle), by a plugin with the id of org.jetbrains.kotlin.android.
If you don't see a plugins block, your project was likely created with an older template version, in which case it is most likely defined in the top-level build.gradle file (/Users/Shared/POC/sblearningapp/shorebirdapp/android/build.gradle) by the ext.kotlin_version property.

Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1368 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Running Gradle task 'bundleRelease'... 25.6s
Shorebird build trace written to /Users/Shared/POC/sblearningapp/shorebirdapp/build/shorebird/debug/build-trace-android.json. View at
https://ui.perfetto.dev
Release app bundle failed to strip debug symbols from native libraries.
Please run flutter doctor and ensure that the Android toolchain does not
report any issues.

Otherwise, file an issue at https://github.com/flutter/flutter/issues.
Failed to build AAB.
Command: flutter build appbundle --release --target-platform=android-arm,android-arm64,android-x64 --shorebird-trace=/Users/Shared/POC/sblearningapp/shorebirdapp/build/shorebird/debug/build-trace-android.json
Reason: Exited with code 1.

Steps To Reproduce
1.Shorebird CLI to be installed - Completed Successfully
2.Create Flutter POC project - I have created only for android
3.Shorebird account creation - Completed Successfully
4.Shorebird init in the POC root - Completed Successfully
5.Trying to generate the build using 'shorebird release android' getting above errors.

Expected Behavior
'shorebird release android' should work and build to be generated.

Screenshots NA

Additional Context
Flutter build creation working fine

flutter build apk --release
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1368 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Running Gradle task 'assembleRelease'... 35.2s
✓ Built build/app/outputs/flutter-apk/app-release.apk (41.9MB)

Highlighting Errors here :-
Release app bundle failed to strip debug symbols from native libraries.
Please run flutter doctor and ensure that the Android toolchain does not
report any issues.

Otherwise, file an issue at https://github.com/flutter/flutter/issues.
Failed to build AAB.
Command: flutter build appbundle --release --target-platform=android-arm,android-arm64,android-x64 --shorebird-trace=/Users/Shared/POC/sblearningapp/shorebirdapp/build/shorebird/debug/build-trace-android.json
Reason: Exited with code 1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions