Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Unable to generate a build with flavours and selected flutter-version #2037

Closed
muhammadmateen027 opened this issue May 8, 2024 · 4 comments
Labels
bug Something isn't working waiting for response Waiting for customer response

Comments

@muhammadmateen027
Copy link

App ID: style_fusion

Description

Trying to generate android release but with flutter's version 3.19.5. After running the command, I can see the below errors:

shorebird release android --target ./lib/main_development.dart --flavor development --flutter-version 3.19.5
✓ Installing Flutter 3.19.5 (47571af6a3) (8.0s)
✗ Failed to build: Downloading Darwin arm64 Dart SDK from Flutter engine 255003dc70296f2db5855f12de4d9f93a7b8b087...
Building flutter tool...
Flutter assets will be downloaded from https://download.shorebird.dev. Make sure you trust this source!
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, 
which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the 
declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, 
which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the 
declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signDevelopmentReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
   > java.lang.NullPointerException (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36s
Gradle task bundleDevelopmentRelease failed with exit code 1
 (91.5s)

If you aren't sure why this command failed, re-run with the --verbose flag to see more information.

Additionally, as I selected the flutter's version 3.19.5, it should not show this message:

You are applying Flutter's main Gradle plugin imperatively using the apply script method, 
which is deprecated........

shorebird Version:

Shorebird 1.0.5 • git@github.com:shorebirdtech/shorebird.git
Flutter 3.19.6 • revision 4b22a31bd9911c8317319292a9a103217919649e
Engine • revision ef2c5cd963e481d44741e2a587ecb7ad69629ce1
@muhammadmateen027 muhammadmateen027 added the bug Something isn't working label May 8, 2024
@eseidel
Copy link
Contributor

eseidel commented May 8, 2024

Does your app build with flutter at 3.19.5? the gradle message in question came as part of 3.16.0 I believe. https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply

@muhammadmateen027
Copy link
Author

Yes, my app is being build with flutter's version 3.19.5 and I am also supporting 3.10.6.
When I try to build with 3.10.6, still I can see the same error.

@eseidel
Copy link
Contributor

eseidel commented May 10, 2024

I've not run across apps before which build across a range of Flutter versions. Can you tell me more about the use case? I would not expect the same source code to build with both Flutter 3.10.6 and 3.19.5. Or did you mean 3.19.6?

@bryanoltman bryanoltman added the waiting for response Waiting for customer response label May 29, 2024
@eseidel
Copy link
Contributor

eseidel commented May 30, 2024

We would love to help, but need more information. Please feel welcome to re-open (or comment and we can). Closing for now without more information.

@eseidel eseidel closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for response Waiting for customer response
Projects
Status: Done
Development

No branches or pull requests

3 participants