londonappbrewery/Clima-Flutter

Permission denied error

Opened this issue · 6 comments

I am getting several error in AndroidManifuest.xml file and unable to proceed further on the project. I am currently learning the course from my organisation id. The below was the issue I m getting. I have tried to resolve by googling and various ways but nothing helped. I am struck and unable to move forward on the same.
Screenshot 2022-01-09 at 7 25 33 AM
.

@angelabauer @TheMuellenator

The course is outdated, so there are many breaking changes.
What I always do is instead of cloning and running the project, I create a new one and copy the file that is needed to the new project and configure from there.
And for the permission denied part try requesting for permission first before getting the current location by
LocationPermission permission = await Geolocator.checkPermission();
then do the get current position

hope that helps

Tried Everything then Found this Solution by myself

  1. Open Settings in your Emulator

  2. Then Open Location settings
    11

  3. Click on "Apps Access to Location"

12

  1. Select your App from the List of other apps asking for location permission
    13

5.Select any of the First Two Options.
14

Tested Solution

Before

Inked16

After

Inked33

Tried Everything then Found this Solution by myself

  1. Open Settings in your Emulator
  2. Then Open Location settings

Thank you! This worked. Apparently, the app's location permission was denied by default on my android 10 emulator.

Happy to hear that I was able to help... @nonsocchi

https://gist.github.com/tauheed0007/990796af7ba921a9b914945e98341f38

dont give permission manually it will give your app bad ratings when uploading on play store just use my code i compile it and its work amazing