Android Radio实战——常见问题总结(十七)

        本篇文章主要分析总结开发中遇到的常见问题,会不定期更新添加内容。

1、找不到Radio服务

问题背景

        项目代码从 Android 9.0 迁移到 Android 11 上。车机上电后出现如下错误:

android.os.ServiceManager$ServiceNotFoundException: No service published for: broadcastradio
android.os.ServiceManager.getServiceOrThrow(ServiceManager.java:153)
android.hardware.radio.RadioManager.(RadioManager.java:1878)
android.app.SystemServiceRegistry$85.createService(SystemServiceRegistry.java:1027)
android.app.SystemServiceRegistry$85.createService(SystemServiceRegistry.java:1024)
android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:1702)
android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:1382)
android.app.ContextImpl.getSystemService(ContextImpl.java:1919)
android.content.ContextWrapper.getSystemService(ContextWrapper.java:803)
com.gwm.android.adapter.server.SysRadio.SysRadioAdapter.(SysRadioAdapter.jav

你可能感兴趣的:(Android,Radio开发,android,Radio开发)