Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied error #30

Open
Ahamed4 opened this issue Jan 9, 2022 · 6 comments
Open

Permission denied error #30

Ahamed4 opened this issue Jan 9, 2022 · 6 comments

Comments

@Ahamed4
Copy link

Ahamed4 commented Jan 9, 2022

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

@Shisunlel
Copy link

Shisunlel commented Feb 23, 2022

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

@deepraj02
Copy link

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

@nonsocchi
Copy link

nonsocchi commented Mar 9, 2022

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.

@deepraj02
Copy link

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

@tauheed0007
Copy link

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

@tauheed0007
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants