Programming/Non programming

Monday, March 31, 2014

Android build error: Call requires API level 14 current min is 8 ...

Android:


Issue

Call requires API level 14 current min is 8 ...

Solution:
It is due to API version level issue. You added latest API, but your program couldn't find it to support for multiple versions, even though you have that version SDK installed.

So,

Just add @SuppressLint("NewApi") just before onCreate() method.

For example like this:

@SuppressLint("NewApi")
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // TODO Auto-generated method stub
    setContentView(R.layout.myActivity);

}

Thank you!

Cheers!

Prabakar

1 comment:

  1. thanks for sharing the more valuable information.
    The Best ethical hacking training in noida provided by Indian Cyber Army.Indian Cyber Army credibility in Ethical hacking training & Cybercrime investigation training is acknowledged across nation as we offer hands on practical knowledge and full assistance with basic as well as advanced level ethical hacking & cybercrime investigation courses. The training is conducted by subject specialist corporate professionals with wide experience in managing real-time ethical hacking/ cyber security projects. Indian Cyber Army implements a blend of academic learning and practical sessions to give the candidate optimum exposure.Ethical hacking training ,Ethical hacking course

    ReplyDelete