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.
.
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
- Open Settings in your Emulator
- 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
https://gist.github.com/tauheed0007/990796af7ba921a9b914945e98341f38
this will help you