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

Unable Resolve The Lamba Expression In Android Java Project #276

Open
hh-ahmad opened this issue Feb 1, 2024 · 0 comments
Open

Unable Resolve The Lamba Expression In Android Java Project #276

hh-ahmad opened this issue Feb 1, 2024 · 0 comments

Comments

@hh-ahmad
Copy link

hh-ahmad commented Feb 1, 2024

I have to use this PermissionX library in Android Java Project, in my java Activity.

PermissionX.init(this)
                .permissions(Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION)
                .request((b, list1, list2) -> {
                    if (b) {
                    } else {
                    });

The following error encountered while writing the above mentioned code:

error: ';' expected .request(b, list1, list2) ->{
and

error: illegal start of expression });

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

1 participant