Skip to content

explicitly set java binary path with flutter config #106416

@animeshxd

Description

@animeshxd

Use case

I have to work with multiple java version, and flutter uses gradle 6.7 which is not comfortable with latest java versions,
Alternatively, I have to perform changes on every projects android\gradle.properties to work with

org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_331\\

Proposal

It will be great if we can set java home or executable with flutter config

PS C:\Users\MSI> flutter config --java-binary=<path/to/java/executable>
Setting "java-binary" value to "<path/to/java/executable>".

You may need to restart any open editors for them to read new settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterplatform-androidAndroid applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions