English 中文(简体)
谷歌 地图
原标题:Google Maps NoClassDefFoundError

I m从事一项roid项目,其中一项活动包含地图观点。 我只是在用法显示一个简单的谷歌地图之后,才算入这个NoClassDefFoundError。 我已经检查了一些类似的问题,并尝试了所建议的解决办法,但还是赢得了一定的工作。 我已经启用了该清单中的因特网永久化,并启用了用户图书馆。 是否有任何人可能提出问题? 该活动守则:

package com.mad.mylit;
import android.os.Bundle;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;

public class LocationsActivity extends MapActivity {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.location);
    }

    @Override
    protected boolean isRouteDisplayed() {
        // TODO Auto-generated method stub
        return false;
    }
}

我在此明确陈述:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mad.mylit"
    android:versionCode="1"
    android:versionName="1.0" android:installLocation="auto">

    <uses-sdk android:minSdkVersion="10" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name" >
        <uses-library android:name="com.google.android.maps"/>
        <activity
            android:name=".MyLitActivity"
            android:label="@string/app_name"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".MapsActivity"></activity>
        <activity android:name=".MyProfileActivity"></activity>
        <activity android:name=".BusActivity"></activity>
        <activity android:name=".EventsActivity"></activity>
        <activity android:name=".LocationsActivity"></activity>
        <activity android:name=".NotesActivity"></activity>
        <activity android:name=".TimetableActivity"></activity>
        <activity android:name=".MondayActivity"></activity>
        <activity android:name=".TuesdayActivity"></activity>
        <activity android:name=".WednesdayActivity"></activity>
        <activity android:name=".ThursdayActivity"></activity>
        <activity android:name=".FridayActivity"></activity>
        <activity android:name=".CaherdavinActivity"></activity>
        <activity android:name=".RaheenActivity"></activity>
        <activity android:name=".UniversityActivity"></activity>
        <activity android:name=".SplashScreen"
              android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

All of the activities are in the same package.

问题回答

试图用你的个人钥匙获得新地图AP钥匙。

Have you recently updated your ADT plugin?

https://stackoverflow.com/questions/2247998/noqudeffounderror-eclipse-and-android>Herehere 大约是同一场谈判。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签