Introduction to the
The customer service system of our app is implemented with Flutter module. At the beginning, I inherited the Flutter Module into the Android native project. However, this method is very invasive, and everyone has to configure the flutter environment. So he stomped on flutter into aar pit, pit 1: flutter version of pit. Maybe there is a problem with the Flutter version. I can’t create aar holes with either the Flutter Application or the Flutter Module: The dependencies of com.kezon.fat-aar in the flutter Module can be relied on, but some dependencies of flutter cannot be
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:embed'.
> Could not resolve project :path_provider_macos.
Required by:
project :app
Copy the code
I tried an online solution, but it didn’t work,
Last resortVersion:
Condition: Ladder
- Step 1: Create a Flutter Module that all three of its dependencies depend on.
- The build aar can be added to the build itself, and a new folder will be generated, outputs- “repo”
Step 3: The result will be printed on the console after the editing is successful. As shown below, then follow the steps to put the configuration into the Android project. The profile configuration can be ignored.The official documentationFlutter. Dev/docs/develo…