80

When I run almost any app in 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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Alexandru Stroescu
  • 1,067
  • 1
  • 9
  • 16

8 Answers8

55

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

hadi
  • 1,104
  • 8
  • 23
46

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

new device

and uncheck GPS

uncheck GPS

Errors will gone.

Alex77
  • 587
  • 4
  • 12
  • 2
    That's unfortunately no solution if the app relies on GPS being switched on. My app reacts differently if GPS is switched off or not available at all. – user2808624 Mar 03 '20 at 08:56
14

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".

vlz
  • 911
  • 1
  • 10
  • 18
4

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".

Ken
  • 49
  • 2
4

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.

2

Exiting and removing the app from multitask in the emulator and rerunning from Android Studio fixed it for me.

I'm assuming it’s an Android Studio bug.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
M4rk
  • 69
  • 2
  • Can you provide instructions on how you did that? – Fabricio Nov 06 '19 at 11:31
  • 1. launch program, I have AVD the android emulator for Nexus5x API 29, 2.Log cat gives a bunch of errors, 3. In the emulator click on bottom right of the phone screen(the multi task square button). 4.click and drag the screen up(removes from multitask). 5. drag up on screen to view apps 6.open your app. At this point the errors went away for me. if it didn't work try deleting the app from the phone. You can also try going to file->Invalidate caches /Restart and also try Build->Clean project. As well turning your computer on and off can sometimes fix IDE problems. – M4rk Nov 07 '19 at 18:23
0

Under Windows, you can disable the message in LogCat by going to the Terminal tab in Android Studio, and then cd to your SDK location platform tools, which is usually at

cd C:\Users\<YourUsername>\AppData\Local\Android\Sdk\platform-tools

Then you can set the visibility, so with standard settings you don’t see the message:

.\adb shell setprop log.tag.GnssHAL_GnssInterface S

The solution is mostly from ChatGPT.

This applies basically to any logtag. Just change the thing behind the log.tag to the logtag that you don’t want to see. Then you can also disable visibility in standard installations.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
-1

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

Anupam Haldkar
  • 985
  • 13
  • 15