You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android开发:调用Google Map API时遇GoogleQuickSearchBox录音权限错误求助

解决Google搜索后台服务触发的麦克风权限错误

Hey there! Let's work through this issue for you since you're new to Android development. First off, let's clear up a key point: this permission error isn't coming from your location-based app — it's from Google's search background service, not your Map API-powered application.

先搞懂错误来源

Looking at your logcat output, the problematic process is com.google.android.googlequicksearchbox:search — that's the voice search component of the Google app. So disabling microphone permissions for your own app won't fix this, because your app isn't the one requesting the RECORD_AUDIO permission in the first place.

具体解决步骤

Here are some actionable steps to resolve or mitigate this:

  • Adjust Google app permissions and voice settings

    1. Open your device's Settings → Apps → Locate the "Google" app (or "Google Search")
    2. Tap into Permissions → Check if Microphone permission is set to "Denied"
    3. If you never use voice search:
      • Keep the permission denied, then disable voice wake-up: Open the Google app → Tap your profile icon → Settings → Voice → "Hey Google & Voice Match" → Turn off "Hey Google" detection
      • This stops the background service from trying to listen for voice commands, which is what's triggering the permission error.
  • Halt Google search's background voice service

    1. Go to Settings → Apps → Find "Google Search" (or the search component within the Google app)
    2. Tap "Force Stop" to immediately stop the running voice service
    3. If your device supports it, disable "Auto-start" permission for the app to prevent it from launching the voice service in the background automatically. Note: This might break voice search if you ever need it later.
  • Just ignore the error (if your app works fine)
    Since this error comes from a system-level process and not your own app, it won't interfere with your location-based functionality. If your app runs as expected, you can safely ignore this log message and focus on your development work.

  • Double-check your app's manifest file
    Even though you said your app doesn't use the microphone, quickly verify your AndroidManifest.xml doesn't have an accidental <uses-permission android:name="android.permission.RECORD_AUDIO"/> entry. If it's there, delete it — though based on your logs, this is unlikely to be the root cause.

总结

This is a common quirk with Google's background voice services, not a flaw in your code. Tweaking the Google app's settings should eliminate the log error, or you can simply ignore it if your app functions properly.

内容的提问来源于stack exchange,提问作者user9442119

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 03:45:13