nqazi

Unable to resolve target 'android-8'

Discussion created by nqazi on Jan 22, 2013
Latest reply on Jan 23, 2013 by doneill-esristaff
I have android sdk intalled with latest api (android 4.2) m using eclipse indigo . I also have installed arcgis sdk for android and added it in eclipse.however when i created my first application named hellowordactvity, the application Created hellowordactvity.java having following code. but the application did not run giving error  Unable to resolve target 'android-8' . need suggestions

import android.app.Activity; (it shows import android cannot be solved)
import android.os.Bundle;


import com.esri.android.map.MapView;


public class hellowordactvity extends Activity {

MapView mMapView ;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mMapView = new MapView(this);

}

@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
protected void onPause() {
super.onPause();
mMapView.pause();
}
@Override protected void onResume() {
super.onResume();
mMapView.unpause();
}

}

Outcomes