在项目的styles.xml文件中添加对应的style。具体来说,可以在
添加完样式后,还需要将MapActivity中的代码修改为:
这样,就能解决“无法解析符号 '@style/Theme.Maps'” 的错误了。
上一篇:AndroidStudio报错:YoumustcallremoveView()onthechild'sparentfirst
下一篇:AndroidStudio报错:“无法访问MenuHost类文件,找不到androidx.core.view.MenuHost”。