Android call requires API level 11 solution

Source: Internet
Author: User

"Cause analysis"

unknown, and may be a bit related to the run Android Lint. is to create a project, we set the minimum version of the API level, such as mine is 8, so, Eclipse check I call the API, found that the version number can not be compatible with the lower version, for example, I use "Notification.builder" is level 11 above, Natural over 8, so the hint is wrong.

"Solutions"

Right-click on the project->android tools->clear Link markers. You can temporarily resolve it, but if the emulator used for debugging is a low version, then there is this error after debugging.

it would be fine if you changed the USER-SDK android:minsdkversion in the manifest file to the high version of the error. such as the following:

<USES-SDK

android:minsdkversion= "11"//Before this is 8

android:targetsdkversion= "/> "


  

"Extended"

This error occurs not only in Level11, but also in others because the minimum version is set, but the solution should be the same in code that uses the high-version API

Related Article

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.