I have custom native iOS and Android libraries. Now I need to create a Flutter plugin that includes these libraries for developing Flutter apps that use these libraries. I already set up the iOS library in the Flutter plugin project. But I am having difficulty including the Android library. The Android library is an .aar file. I searched online, but found limited information on this. None of the solutions work. Basically the issue is this: Direct local .aar file dependencies are not supported when building an AAR.
Here is one discussion on this. But I don't find any that works in my case. stackoverflow.com/questions/60878599/error-building-android-library-direct-local-aar-file-dependencies-are-not-supp
Any help is greatly appreciated.