-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterplatform-androidAndroid applications specificallyAndroid applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
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.
gnprice, animeshxd, sebastianhaberey, chris-hanna, louis97 and 4 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterplatform-androidAndroid applications specificallyAndroid applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.