CameraDeepAR icon indicating copy to clipboard operation
CameraDeepAR copied to clipboard

Error while evaluating property 'hasLocalAarDeps' of task ':camera_deep_ar:bundleDebugAar'

Open fahadfhd opened this issue 3 years ago • 2 comments

Error while evaluating property 'hasLocalAarDeps' of 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). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error: /Users/nuoxmini/fahad/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera_deep_ar-0.0.2+3/android/lib/deepar0.aar

gradle error

fahadfhd avatar Jun 15 '22 08:06 fahadfhd

I am also facing the same problem and I am unable to find the solution.

Execution failed for task ':camera_deep_ar:bundleDebugAar'.

Error while evaluating property 'hasLocalAarDeps' of 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). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\camera_deep_ar-0.0.2+3\android\lib\deepar0.aar

Usamait13 avatar Sep 05 '22 05:09 Usamait13

I have founf the solution you have to use lower version of gradle ie

Hi, if you do want to use this plugin set the following:

Your project build.gradle classpath :

classpath 'com.android.tools.build:gradle:3.5.0'

set your app.gradle to:

compileSdkVersion 29 minSdkVersion 21 targetSdkVersion 29

set your gradle/wrapper/gradle-wrapper.properties to: distributionUrl=https://services.gradle.org/distributions/gradle-6.7-all.zip

this is a customized library for a particular feature i freely open-sourced!

Usamait13 avatar Sep 05 '22 05:09 Usamait13