Logcat full of "input svInfo.flags is 8" while app is running

AndroidAndroid StudioCompiler ErrorsLogcat

Android Problem Overview


When I run almost any app on android studio, my logcat gets full of messages like:

"? E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 ? E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8"

What's this? Is there something wrong about my app?

Android Solutions


Solution 1 - Android

There is a much simpler solution. in your AVD simply go to settings->location and uncheck use location. Location service image

Solution 2 - Android

You should create Virtual Device in AVD manager without GPS sensor.

new device

and uncheck GPS

uncheck GPS

Errors will gone.

Solution 3 - Android

I needed GPS enabled and could not disable Location Services, so I used this regex with a negative lookahead in logcats search filter:

^(?!.*input svInfo\.flags is 8)

This selects everything not containing the end of the error message ("input svInfo.flags is 8"), but displays everything else.

The search filter should be right above the log output. You might need to activate a selct box reading "regex".

Solution 4 - Android

Not likely anything wrong with your app. The problem is probably the settings in the "Filter Configuration" in Logcat. It kinda hides as a setting, and has a habit of automatically switching to the "No Filters" selection. If you find out why, let me know.

To ignore the debug error in your question: in the Logcat panel choose a configure filter option in the drop-down after the filter input and Regex option checkbox.

Probably best option is "Show only selected application".

Solution 5 - Android

It really solved the problem when you turn off your location services. It happens when I try to fetch data from web API, now I resolve by turning off location.

Solution 6 - Android

Exiting and removing the app from multitask in the emulator and re-running from android studio fixed it for me. I'm assuming its an Android studio bug.

Solution 7 - Android

There are two possible solution to this fix,

Either

> You can disable Location Services in the Emulator that you are running app

or > Create a new Virtual device and disable GPS inside Hardware Profile

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAlexandru StroescuView Question on Stackoverflow
Solution 1 - AndroidhadiView Answer on Stackoverflow
Solution 2 - AndroidAlex77View Answer on Stackoverflow
Solution 3 - AndroidvlzView Answer on Stackoverflow
Solution 4 - AndroidKenView Answer on Stackoverflow
Solution 5 - AndroidSunil TimilsinaView Answer on Stackoverflow
Solution 6 - AndroidM4rkView Answer on Stackoverflow
Solution 7 - AndroidAnupam HaldkarView Answer on Stackoverflow