Skip to content

[plugins] Android AAR builds are broken (Android property not found) #57846

Closed

Description

Description

It seems like #46304 is still an issue for Android AARs and since recently all no-op android directories have been removed in flutter/plugins, this breaks any flutter build aar using any of those Flutter plugins.

Steps to Reproduce

  1. Add url_launcher as a dependency:
url_launcher: 5.4.10
  1. Run flutter build aar.
  2. Experience the following build failure: https://stackoverflow.com/questions/59942331/android-property-not-found-error-while-building-flutter-aar

This happens because assembleAarDebug cannot be found for the url_launcher_web plugin that is automatically included when using flutter build aar.

This specific problem (for url_launcher) was caused by this PR from @cg021: flutter-team-archive/plugins#2776

FAILURE: Build failed with an exception.
* Where:
Initialization script '/opt/flutter/packages/flutter_tools/gradle/aar_init_script.gradle' line: 15
* What went wrong:
Android property not found.

Activity

  1. TahaTesser commented on May 25, 2020

    @TahaTesser
    Contributor

    duplicate of #57795

  2. github-actions commented on Aug 20, 2021

    @github-actions

    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 flutter doctor -v and a minimal reproduction of the issue.

  3. locked as resolved and limited conversation to collaborators on Aug 20, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions