i tried to install google maps package but it doesn't work when i run the app here is the pubspec.yamlenter image description here
and the error is : enter image description here
i already tried aloder versions like google-maps:1-0-0 but it doesn't work and also updating the sdk will effect all the project
CodePudding user response:
The minimum sdk must be greater that 20 for the plugin to use.
Go to android -> app -> build.grade
and update the values as following
compileSdkVersion 31
minSdkVersion 21
targetSdkVersion 31
stop the emulator and run the app again
CodePudding user response:
Go to android-> app -> build.gradle
Increase your minSdkVersion version to 20