Want to build Flutter project with Android aar file? After learning the Flutter example – hello services, I have successfully built my Flutter project with aar file.
Basic Steps:
Download the Flutter source code.
Open flutter/examples/hello_services/android in Android Studio.
Click File > New > New Module and choose Import .JAR/.AAR Package.
Press F4 to open Project Structure, and then add the dependent module.
Write Java code to invoke APIs that defined in aar file.
Import flutter/examples/hello_services to Intellij IDEA.
Build and run the Flutter app.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.
We use cookies to ensure that we give you the best experience and use cookies in order to personalize the advertising that you see on our website. Read more about our Privacy Policy.Got it!