Android - Failed to find style 'mapViewStyle' in current theme

前端 未结 2 1747
北恋
北恋 2020-12-11 04:52

I\'ve a little problem with my Android Maps Application. So that when I added MapView to my layout xml file it shows me \"Failed to find style \'mapViewStyle\' in current th

相关标签:
2条回答
  • 2020-12-11 05:19

    This happened to me too.. go into res>values>styles.xml

    remove the previous theme line and put this one

    <style name="AppBaseTheme" parent="android:Theme.Light" />
    

    During the project creation, Eclipse asks to define a theme for the application. You might have selected any Holo theme. This theme doesn't support MapView which is showing the error.

    0 讨论(0)
  • 2020-12-11 05:22

    You were right, Rafael T, that's an Eclipse bug...I have solved this using Ant builder (through terminal), and that worked :) Thanks again..

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