‘flutter build appbundle’ results in:
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:packageReleaseBundle’.
1 exception was raised by workers:
com.android.tools.build.bundletool.exceptions.BundleFileTypesException$FileUsesReservedNameException: File ‘root/lib/x86_64/darwin/libscrypt.dylib’ uses reserved file or directory name ‘lib’.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Upgrading gradle to latest version didn’t help. How can I fix this?