-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
[flutter module] Flutter_tools/gradle/aar_init_script.gradle' line: 15 - AAR build fail #57795
Comments
Edit: |
Thanks for the solution. By the way, what if I am working on a project targeting both macOS and Android? I believe this is a bug of Flutter build tool, because the generated Gradle script loads plugin from deprecated |
same issue, |
@TahaTesser This is not fixed by just using #46304 only fixed APK and AAB builds but not AAR builds. Here is a list of the offending commits by @cg021: |
cc @blasten |
@creativecreatorormaybenot |
If you are on the latest stable, this issue can be solved by just running Flutter clean will delete the .android directory, and then |
@blasten That did not seem to work for us. Our CD showed this issue and it was using both the latest |
@blasten I'm using Flutter 1.17.1 and |
I didn't depend on path_provider, and come across such error, and flutter doesn't work; |
This issue also affects apps because 54dba4c isn't on |
This is now fixed on stable. Run |
just show my found answer for others: https://stackoverflow.com/questions/59942331/android-property-not-found-error-while-building-flutter-aar
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter create -t module --org com.example path_provider_issue
path_provider: ^1.5.1
to pubspec.yaml and runflutter pub get
flutter build aar
If opening pubspec.lock I found that:
and if I force
path_provider_macos
to 0.0.4+2 in pubspec.yaml, the build passes.path_provider_macos 0.0.4+3 removes the android module, but Flutter tries to evaluate android/build.gradle inside it.
Logs
Running
flutter doctor -v
:The text was updated successfully, but these errors were encountered: