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

Android build error: R cannot be resolved

Android:


Issue:

R cannot be resolved

Solution:

When I observed "R cannot be resolved" error with the most of the existing solution given, i found making sure, all the res/* filenames should be named with lowercase character, underscore and number between 0 and 9, was the typical fix for me.


Thank you!

Cheers!

Prabakar