私はAndroidのプログラミングとEclipse.Iでプロジェクトに取り組んでいるに新しいですが最初tutorial'HelloWorld」を試みたが、このエラーました:Androidの「クラスを見つけることができませんでした」というエラー
Could not find class 'com.esri.android.map.MapView', referenced from method com.esri.arcgis.android.samples.helloworld.HelloWorldActivity.onCreate
にそこに持っていますがMapView
という名前のレイアウトですか?もしそうなら、私は自分のプロジェクトにはいません。どのようにプロジェクトに取り込むことができますか教えてください。
また、プロジェクトにはすべてのソースフォルダがあります。 MapViewでも、なぜこの種のエラーが表示されているのか分かりません。私はこのプロジェクトに助けが必要で、数日以内に完了する必要がありますが、このエラーのために私は立ち往生しており、続行できません。私が試したすべてのプロジェクトがArcGISによって提供されたサンプルであっても、私のすべてのプロジェクトでこの同じ問題に直面しています。
package com.esri.arcgis.android.samples.helloworld;
import android.app.Activity;
import android.os.Bundle;
import com.esri.android.map.MapView;
import com.esri.android.map.ags.ArcGISTiledMapServiceLayer;
public class HelloWorldActivity extends Activity {
MapView map = null;
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// Retrieve the map and initial extent from XML layout
map = (MapView)findViewById(R.id.map);
// Add dynamic layer to MapView
map.addLayer(new ArcGISTiledMapServiceLayer("" +
"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"));
}
protected void onPause() {
super.onPause();
map.pause();
}
protected void onResume() {
super.onResume();
map.unpause();
}
}
'com.esri.arcgis.android.samples.helloworld'あなたのパッケージ名? –
はいパッケージ名は – Aisha