0

When install connectivity package , can not build apk in the connectivity version 2.0.1 .

DevName
  • 1
  • 1
  • 1

1 Answers1

0

Go to

android->gradle->wrapper->gradle-wrapper.properties

file and open it. change this line of code

"distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip"

to

distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip

and then; type this command below terminal and enter

flutter clean

when its finished; run

flutter run

after these steps, if you still get errors; follow these instructions at this answer.

Taady
  • 2,409
  • 2
  • 10
  • 24