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 release aar (shorebird release aar --release-version 1.0.0+1) #2091

Closed
vineetpal88 opened this issue May 14, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@vineetpal88
Copy link

App ID: com.shout.dating

I am implementing a shorebird for hybrid android app. I imported flutter module in my android app.
I open PowerShell and go to flutter module and run this command (shorebird release aar --release-version 1.0.0+1) but this command give me error:
PS D:\shoutproject\DatingFlutterCode3Shore\datingapp\shout2> shorebird release aar --release-version 1.0.28+29
✓ Fetching apps (0.6s)
⠸ Building aar with Flutter 3.19.6 (4b22a31bd9)... (16.4s)Failed to build aar: Instance of 'ArtifactBuildException'
Screenshot 2024-05-14 134028

@vineetpal88 vineetpal88 added the bug Something isn't working label May 14, 2024
@vineetpal88
Copy link
Author

@bryanoltman @erickzanardo Can you please help me on this?

@bryanoltman
Copy link
Contributor

Does flutter build aar work with Flutter 3.19.6?

@vineetpal88
Copy link
Author

aftr running flutter build aar got this error:
PS D:\shoutproject\DatingFlutterCode3Shore\datingapp\shout2> flutter build aar

Running Gradle task 'assembleAarDebug'... 7.4s

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 plugin
s with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

FAILURE: Build failed with an exception.

Where:
Initialization script 'D:\flutter_sdk\flutter_windows_3.13.1-stable\flutter\packages\flutter_tools\gradle\aar_init_script.gradle' line: 129

What went wrong:
Failed to notify build listener.
assert moduleProject != null
| |
null false

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 7s

Gradle task assembleAarDebug failed with exit code 1.

@bryanoltman
Copy link
Contributor

After some discussion on Discord, @vineetpal88 mentioned that they have integrated Flutter into their Android app using the "Module source code" method mentioned in https://docs.flutter.dev/add-to-app/android/project-setup#integrate-your-flutter-module. Shorebird does not yet support this mode of hybrid Android app.

@erickzanardo
Copy link
Contributor

@bryanoltman should we close this issue in favor of a new one specific about adding this mode that we don't support?

@bryanoltman
Copy link
Contributor

@erickzanardo yeah, I think that'd be best

@erickzanardo
Copy link
Contributor

Closing this in favor of #2168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants