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

后端 未结 7 759
花落未央
花落未央 2021-02-06 20:13

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_Gn

相关标签:
7条回答
  • 2021-02-06 20:46

    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

    0 讨论(0)
  • 2021-02-06 20:48

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

    0 讨论(0)
  • 2021-02-06 20:50

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

    0 讨论(0)
  • 2021-02-06 20:58

    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.

    0 讨论(0)
  • 2021-02-06 20:59

    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.

    0 讨论(0)
  • 2021-02-06 21:06

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

    0 讨论(0)
提交回复
热议问题