cargo-mobile icon indicating copy to clipboard operation
cargo-mobile copied to clipboard

Any way to use GRADLE_OPTS env var

Open katyo opened this issue 1 year ago • 0 comments

Is there a way to passthrough environment variable GRADLE_OPTS from shell?

Despite I set it like so:

export GRADLE_OPTS=$GRADLE_OPTS -Dorg.gradle.project.android.aapt2FromMavenOverride=/nix/store/ph0zds5iwn62jikimaqw5bd9mgyk4gvi-androidsdk/libexec/android-sdk/build-tools/30.0.2/aapt2

(see https://nixos.org/manual/nixpkgs/unstable/#notes-on-environment-variables-in-android-projects)

Unfortunattely in gradlew this env var still keeps empty.

katyo avatar Jan 21 '23 20:01 katyo