Android maps:Failed to find style 'mapViewStyle' in current theme

前端 未结 2 1402
走了就别回头了
走了就别回头了 2020-12-19 09:04

I am trying to use maps in my application and i get this error, Failed to find style \'mapViewStyle\' in current theme

i have generated the key properly, and have tr

2条回答
  •  忘掉有多难
    2020-12-19 09:36

    I thought I'd add this little tidbit. I was getting error #4 above. It took me forever to realize that the theme I had made for my Preferences was automatically being applied to every single layout file I had already made. Choosing a different one as described above fixed my problem. I don't know why Android Studio automatically applied it to all my other layouts, but I wish it wouldn't.

    I still don't know why the theme I'd made was breaking everything, as it was only applying a backgroundColor to my Preferences page, but hopefully someday I will.

提交回复
热议问题