appcompat v7 问题
SDK低于4.0,新建第一个Activity时会自动产生appcompat_v7
http://jingyan.baidu.com/article/2d5afd69e846d285a2e28eff.html
--------------------
升级sdk 到5.0时,创建项目时会多创建一个库项目,叫appcompat_v7。
创建完成后,这个项目可能会报错,诸如出现:No resource found that matches the given name 'android:Widget.Material.ActionButton'等错误。
如果你不想创建appcompat_v7,你可以在创建项目时将
minimum Required SDK设置为4.1以上,这时就不再生成
appcompat_v7项目了,然后你再去清单文件中将minSdkVersion还原为8就行了.
http://www.phperz.com/article/14/1204/39233.html
--------------------
LogCat:
--------------------------------------------------------------------------------------
07-18 05:00:20.234: E/AndroidRuntime(1888): FATAL EXCEPTION: main
07-18 05:00:20.234: E/AndroidRuntime(1888): Process: com.example.helloandroid, PID: 1888
07-18 05:00:20.234: E/AndroidRuntime(1888): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.helloandroid/com.example.helloandroid.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
--------------------------------------------------------------------------------------
07-18 05:00:20.234: E/AndroidRuntime(1888): FATAL EXCEPTION: main
07-18 05:00:20.234: E/AndroidRuntime(1888): Process: com.example.helloandroid, PID: 1888
07-18 05:00:20.234: E/AndroidRuntime(1888): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.helloandroid/com.example.helloandroid.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
更改 styles.xml 文件: