1. Error adding dependency(eg:english_words)

It is no problem to add the dependency according to the method of official website. hold
import 'package:english_words/english_words.dart';
Import intomain.dart in, startimport All in red, Baidu is useless in many ways, Here are the mistakes
Error on line 6, column 5 of pubspec.yaml: A dependency may only have one
source. sdk: flutter ^^^^^^^^^^^^^^ pub get failed (60)
Terms of settlement:  Note when adding dependenciessdk Format( Alignment mode  -_-||)



Normal..



2.Failed to install the following Android SDK packages as some licences have
not been accepted.



Open me up Ofbuild.gradle Inside fileandroid { } No  ( The following figure frames the content just added)



2.Could not find method android() for arguments
[[email protected]] on object of
type org.gradle.api.internal.initialization.DefaultScriptHandler.