I keep getting this error when I try to use my .aar plugin created in android studio on Unity 3d
Error building Player: IOException: Failed to Move File / Directory from 'Temp/StagingArea\android-libraries\app-release\classes.jar' to 'Temp/StagingArea\android-libraries\app-release\libs\classes.jar'.
Use provided scope in gradle.
https://sinking.in/blog/provided-scope-in-gradle/
dependencies
{
provided fileTree(dir: 'libs', include: ['*.jar'])
}
You need to remove 'libs/classes.jar' in your aar(use your favorate archive manager, it's just ZIP file), since Unity will inject it by self. Unity will fail if there's already one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With