Search code examples
androidgradleflutteraar

'Android property not found.' error while building Flutter aar


How to fix Android property not found error while flutter build aar?

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

Solution

  • Check all plugins, if they have not android module, then you should add. In my case, my colleague developed iOS related plugin and removed Android part, because it was intended only for iOS.

    Your plugins (in our case it's ios_status_bar plugin) should contain both android and ios folders. If you delete android you'll get the error Android property not found

    enter image description here