Let's take a look. The first sentence after oncreate is an error.

Source: Internet
Author: User

=============== 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.