=============== Problem description ====================
I want to use drawerlayout + fragment as the drawer menu in the activity, and then include the actionbar In the first fragment on the right.
After the result project is run, oncreate of the activity runs to super. oncreate (savedinstancestate); an error is returned.
============= Solution 1 ======================
Capture logs
============= Solution 2 ======================
The project does not have this android. Support. v7.appcompat reference in the project is OK http://blog.csdn.net/cs742611497/article/details/21003359
============= Solution 3 ======================
Re-build a project. The earlier version is android4.0.
============= Solution 4 ======================
Reply by referencing the libraholic on the 9th floor:
Quote: Reference libraholic on the eighth floor:
Quote: reference the reply from lee_shuo on the 7 th floor:
The project does not have this android. Support. v7.appcompat reference in the project is OK http://blog.csdn.net/cs742611497/article/details/21003359
It has been referenced. This error is reported only after running.
It may be that I am not complete enough, my code has been written, and the tab of the drawer menu and actionbar has been written. That is, when running, it will report this error.
Re-build an API low point Project
============= Solution 5 ======================
What about your style? Paste it to see
============= Solution 6 ======================
Will your new helloworld report an error?
============= Solution 7 ======================
Reply to reference libraholic on the 18 th floor:
Quote: Reference heaimnmn reply on the 16th floor:
Will your new helloworld report an error?
Helloword does not report an error
That is, the referenced package has an error or the Code has a problem.
============= Solution 8 ======================
Open the android support package for SDK Manager upgrade
============= Solution 9 ======================
Reference libraholic on the 22nd floor:
I have just created a new project and re-wrote a simple slidingmenu. I found that the same error is still reported. I guess there is a problem with my code ....
Are you using a third-party slidingmenu package?
============= Solution 10 ======================
Reference libraholic on the 15th floor:
Quote: reference the reply from lee_shuo on the 11 th floor:
Quote: reference the reply from libraholic on the 9th floor:
Quote: Reference libraholic on the eighth floor:
Quote: reference the reply from lee_shuo on the 7 th floor:
The project does not have this android. Support. v7.appcompat reference in the project is OK http://blog.csdn.net/cs742611497/article/details/21003359
It has been referenced. This error is reported only after running.
It may be that I am not complete enough, my code has been written, and the tab of the drawer menu and actionbar has been written. That is, when running, it will report this error.
Re-build an API low point Project
I just tried it. If I tried 4.2, 4.1, 4.0, this error will also be reported...
Get a 2.1
Let's take a look. The first sentence after oncreate is an error.