CameraDeepAR icon indicating copy to clipboard operation
CameraDeepAR copied to clipboard

Cannot run with gradle:4.1.0

Open Hi99simon opened this issue 3 years ago • 6 comments

Switch from classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:4.1.0'

It caused "Direct local .aar file dependencies are not supported when building an AAR" error.

Any updates?

Hi99simon avatar Jan 28 '22 09:01 Hi99simon

Drop a screenshot of your project build.gradle && app build.gradle

mtellect avatar Jan 28 '22 22:01 mtellect

And please note , if you follow the example on the Dev branch exactly as it is, you won't have issues. This plugin was built for a particular purpose in mind and a specific feature on Deepar SDK (hair segmentation).

mtellect avatar Jan 28 '22 22:01 mtellect

Drop a screenshot of your gradle-wrapper.properties

mtellect avatar Jan 28 '22 22:01 mtellect

Yes, I use the same example project in CameraDeepAR project (dev branch), and upgrade from 3.5.0 to 4.1.0 gradle version, since other plugins require higher gradle version.

And if you run it, it says that "Direct local .aar file dependencies are not supported when building an AAR."

Do you have any solutions? (I can run in 3.5.0 gradle version, but many plugins require higher project gradle version otherwise will crash)

THANKS SO MUCH!

Screenshot 2022-01-29 at 9 58 40 AM Screenshot 2022-01-29 at 9 58 55 AM

Hi99simon avatar Jan 29 '22 02:01 Hi99simon

And after running, errors like this shown. Can you replicate this error? Screenshot 2022-01-29 at 10 18 19 AM

Hi99simon avatar Jan 29 '22 02:01 Hi99simon

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

mtellect avatar Jan 31 '22 19:01 mtellect