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

Which settings to import for canDrawOverlays? #8

Closed
beingentangled opened this issue Dec 16, 2015 · 3 comments
Closed

Which settings to import for canDrawOverlays? #8

beingentangled opened this issue Dec 16, 2015 · 3 comments

Comments

@beingentangled
Copy link

While compiling the project I'm getting a problem with the Settings which is showing a mismatch. Could you suggest which settings should i use?
Error:(84, 8) error: cannot find symbol variable Settings

@iballan
Copy link

iballan commented Dec 16, 2015

you should first check if the target sdk of your project is Android M, In your case the target api is not Marshmallow, thats why you see this error.
then check whether the android build version sdk_int >= Marshmallow before calling canDrawOverlays

canDrawOverlays provided in Marshmallow though

@rayliverified
Copy link
Contributor

Change target SDK to Android M. Wrap canDrawOverlays with build version check.
PR #9 solves this issue. Once the PR is approved, this issue can be closed.

@marshallino16
Copy link
Owner

Thanks for the PR @searchy2

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

4 participants