2

Could not find an option named "androidx". Run flutter -h (or flutter -h) for available flutter commands and options.

5
  • run flutter doctor from command line to check if everything is in order Commented Oct 9, 2019 at 13:30
  • no problem when i try flutter doctor on cmd,but it doesn't even create a new project Commented Oct 9, 2019 at 13:50
  • flutter doctor only checks if installation and dependencies are correct Commented Oct 9, 2019 at 13:53
  • It seems that your Android Studio Flutter plugin is newer than your installation of Flutter. The plugin is trying to run "flutter create" and probably passing the --androidx command line param, but maybe you have an older version of flutter that doesn't understand that newer command line option. You can always simply create the project using "flutter create" yourself from the command line. Commented Oct 9, 2019 at 14:18
  • thanks bro it works with command line option,it costs me to much time Commented Oct 9, 2019 at 16:51

1 Answer 1

2

Richard is correct. Upgrading flutter will resolve this issue in Android Studio. At the command line type:

flutter upgrade 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.