Android 未找到类异常

Android 未找到类异常,android,exception,google-maps,Android,Exception,Google Maps,在我的android应用程序中,我使用了谷歌地图。我一直在使用安卓设备1.6。该应用程序将在emulator和android2.2设备上完美运行。当我在android 1.6中使用这个应用程序时,它会显示一个异常 java.lang.ClassNotFoundException 请发送此问题的解决方案 <com.google.android.maps.MapView android:id="@+id/mMapView" android:layout_width="fill_parent"

在我的android应用程序中,我使用了谷歌地图。我一直在使用安卓设备1.6。该应用程序将在emulator和android2.2设备上完美运行。当我在android 1.6中使用这个应用程序时,它会显示一个异常

java.lang.ClassNotFoundException

请发送此问题的解决方案

<com.google.android.maps.MapView
android:id="@+id/mMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="0Ch_WE9h_nEOXJcdEm1UmEVnZjFsenqLslkrGyA"
/>

确保您使用谷歌地图的活动扩展了
com.Google.android.Maps.MapActivity

请发布更多代码;此错误表示Android 1.6中缺少一个类(可能是仅在较新的API中实现的类),但如果没有更多信息,我们无法猜测是哪一个类:)您确定您的AVD具有Google API吗?发布一些日志或示例代码以便我们可以复制它,否则很难帮助您确定它是“SelectedGameName”?,据我所知,android不允许视图名称使用大写字母。是的,我对此很确定,感谢大家关注我。现在,通过使用相同的代码创建新类,问题得到了解决。我不知道这个问题是如何解决的。但我只创建了具有相同类名的新类,使用错误类代码中编写的相同代码,它解决了这个错误。
mListView.setOnItemClickListener(new OnItemClickListener()
        {
            public void onItemClick(AdapterView<?> parent, View v,
                    int position, long id)
            {
                ParsedData o = Retailerdata.get(position);

                Intent intenRetailerLocation = new Intent(
                        RetailerListing.this, RetailerLocation.class);
                intenRetailerLocation.putExtra("Lat", Float.valueOf(o
                        .getLat()));
                intenRetailerLocation.putExtra("long", Float.valueOf(o
                        .getLong()));
                intenRetailerLocation.putExtra("Adress", o.getAddress());
                intenRetailerLocation.putExtra("zip", o.getZip());
                intenRetailerLocation.putExtra("city", o.getCity());
                intenRetailerLocation.putExtra("Description", o
                        .getDescription());
                startActivity(intenRetailerLocation);
                finish();

            }

        });
@Override
public void onCreate(Bundle savedInstanceState) 
{ 
    super.onCreate(savedInstanceState);// Error comes on this line      
        setContentView(R.layout.retailerlocation);

        myLayout=(RelativeLayout)findViewById(R.id.MyLayout);
        mImageView = (ImageView) findViewById(R.id.picture);
        mContainer = (ViewGroup) findViewById(R.id.container);

    topTitle=(TextView)findViewById(R.id.SelectedGameName);
    mMapView = (MapView) findViewById(R.id.mMapView);
    mMapView.setTraffic(false);
    mMapView.setStreetView(false); 
    mMapView.setSatellite(false);

    mMapView.setBuiltInZoomControls(true);