K
K
Kirik20902021-01-04 23:17:14
Android
Kirik2090, 2021-01-04 23:17:14

What is the error I don't understand?

Error say what it means
java.lang.RuntimeException: Unable to resume activity {com.example.location/com.example.location.MainActivity}: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3824)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3856)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android. app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android. app.ActivityThread.main(ActivityThread.java:6826)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com. android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
at android.os.Parcel.createException(Parcel.java:1953)
at android.os.Parcel.readException(Parcel.java:1921)
at android.os.Parcel.readException(Parcel.java:1871)
at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:755) at
android.location.LocationManager.requestLocationUpdates(LocationManager.java:1019
)
com.example.location.MainActivity.onResume(MainActivity.java:46)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1413)
at android.app.Activity.performResume(Activity.java:7400)
at android.app .ActivityThread.performResumeActivity(ActivityThread.java:3816)
... 11 more
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.LocationManagerService.checkResolutionLevelIsSufficientForProviderUse(LocationManagerService.java:1568)
at com.android.server.LocationManagerService.requestLocationUpdates(LocationManagerService.java:2156
) )
at android.os.Binder.execTransact(Binder.java:731)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BitNeBolt, 2021-01-04
@BitNeBolt

Everything is written. Permission to access the location was not granted (given by the user upon request or in the settings).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question