Skip to content

fix: Android Studio IDE run button not working ( getting gradle exception) #101

@venkata-reddy-dev

Description

@venkata-reddy-dev

Description
The following is the error log, When i run on Android studio IDE run button.
Screenshot from 2021-03-02 21-05-48

Steps To Reproduce

  1. run command: very_good create my_app
  2. open project in android studio
  3. select staging ( run configuration)
  4. click on install button ( Green color run button)
  5. Seeing error as above screenshot

Expected Behavior
after tap on android studio run button, android app should be build and install into any available or target device/simulator.

My workaround notes
1.app is build success and installed into target device when i used command in teriminal
command : flutter run --flavor staging --target lib/main_staging.dart

  1. i have made below change ( added flavor argument in IDE run configuration as below ) and working as expected
    only diff is line number 3 added.
    Screenshot from 2021-03-02 21-18-22

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions