mtellect / CameraDeepAR

MIT License
32 stars 50 forks source link

Cannot run with gradle:4.1.0 #46

Open Hi99simon opened 2 years ago

Hi99simon commented 2 years ago

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?

mtellect commented 2 years ago

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

mtellect commented 2 years ago

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 commented 2 years ago

Drop a screenshot of your gradle-wrapper.properties

Hi99simon commented 2 years ago

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 commented 2 years ago

And after running, errors like this shown. Can you replicate this error?

Screenshot 2022-01-29 at 10 18 19 AM
mtellect commented 2 years ago

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