Let’s assume you built a Flutter module at
some/path/my_flutter, and then run:

cd some/path/my_flutter

flutter build aar

Then, follow the on-screen instructions to integrate.

More specifically, this command creates
(by default all debug/profile/release modes)
a local repository, with the following files:

To depend on the AAR, the host app must be able
to find these files.

To do that, edit app/build.gradle in your host app
so that it includes the local repository and the dependency:

android

// ...

repositories

maven

url

'some/path/my_flutter/build/host/outputs/repo'

// This is relative to the location of the build.gradle file

// if using a relative path.

maven

url