http://mobile.51cto.com/aprogram-387074.htm 希望有所帮助

解决方案 »

  1.   

    你没修改 AndroidManifest.xml  里  activity  的  theme  吧
      

  2.   

     activity里面添加自己的theme 
      

  3.   

     <activity android:name=".MainActivity" android:theme="xxxxxxx"></activity>
    试试
      

  4.   

    我在activity里添加自己的theme,结果就报错You need to use a Theme.AppCompat theme (or descendant) with this activity.
      

  5.   

    我在activity里添加自己的theme,结果就报错You need to use a Theme.AppCompat theme (or descendant) with this activity.
      

  6.   

    我在activity里添加自己的theme,结果就报错You need to use a Theme.AppCompat theme (or descendant) with this activity.
      

  7.   

    我在activity里添加自己的theme,结果就报错You need to use a Theme.AppCompat theme (or descendant) with this activity.这个问题你解决了吗?
      

  8.   

    创建的activity是MainActivity extends ActionBarActivity这样的。把后面的ActionBarActivity改成Activity
      

  9.   

    我找了几天终于找到答案了,原来继承了ActionBarActivity出问题了。用Activity就没事儿了
      

  10.   

    楼主,解释在这里,坑了我好久:http://www.tuicool.com/articles/QjUryi