Skip to content
New issue

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

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

Already on GitHub? # to your account

Library is not compatible with moko permissions 0.19.0 #53

Open
burnoo opened this issue Feb 22, 2025 · 2 comments · May be fixed by #54
Open

Library is not compatible with moko permissions 0.19.0 #53

burnoo opened this issue Feb 22, 2025 · 2 comments · May be fixed by #54

Comments

@burnoo
Copy link
Contributor

burnoo commented Feb 22, 2025

moko-geo is crashing when used with moko-permissions 0.19.0 due to changes introduced in icerockdev/moko-permissions#143

java.lang.NoSuchFieldError: No static field LOCATION of type Ldev/icerock/moko/permissions/Permission; in class Ldev/icerock/moko/permissions/Permission; or its superclasses (declaration of 'dev.icerock.moko.permissions.Permission' appears in /data/app/~~aS7vePrLWpbPeUz79lhSyw==/house.letmein.app.debug-bbHPs3OrYChIjNUdYKv9Gg==/base.apk!classes25.dex)
    at dev.icerock.moko.geo.LocationTracker.startTracking(LocationTracker.kt:127)

Workaround

Keep using moko-permissions 0.18.0 till moko-geo is updated

Fix

Dependency dev.icerock.moko:permissions-location:0.19.0 should be added to the project and import dev.icerock.moko.permissions.location.Location to LocationTracker.kt

@MalcolmMcFly
Copy link

Just faced this as well

@shalva97
Copy link

yep, same here.

@burnoo burnoo linked a pull request Feb 23, 2025 that will close this issue
@Alex009 Alex009 linked a pull request Feb 24, 2025 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants