Deep AR Flutter: Direct local .aar file dependencies are not supported when building an AAR

Viewed 2066

I'm following the documentation as given in the plugin page on camera_deep_ar

  1. I have set the minimumSdkVersion to 19
  2. Given the permissions correctly in the AndroidManifest.xml
  3. Set up the proguard-android.txt file correctly
  4. And used the sample code given in the docs

This is the error it gives me on running the app.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':camera_deep_ar:bundleDebugAar'.
> Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). 
1 Answers

The error seems to be thrown from the camera_deep_ar plugin. Try rebuilding the Flutter project to check if this can solve the references in the project. To do this, run flutter clean then flutter pub get.

Related