Closed zh4ngx closed 9 months ago
Same here but this works for me, and I don't understand why.
So the gradle opts line probably needs to point to a build-tools
version that you have installed
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/libexec/android-sdk/build-tools/34.0.0/aapt2";
buildToolsVersion = "34.0.0"
Let me give it a try and see if I can narrow it down
Same here but this works for me, and I don't understand why.
So the gradle opts line probably needs to point to a
build-tools
version that you have installedGRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/libexec/android-sdk/build-tools/34.0.0/aapt2";
buildToolsVersion = "34.0.0"
I tried this but it didn't work out for me
An issue has been created upstream for this: https://github.com/NixOS/nixpkgs/issues/289936
I get an error with "AAPT2" when I try to run
flutter build apk
after checking out the project. This is on NixOS.