मैं अपना पहला Google मानचित्र ऐप बना रहा हूं, लेकिन मैंने कुछ परेशानी में भाग लिया है और मैं यह नहीं समझ सकता कि क्यों। मुझे क्लास नॉटफाउंड अपवाद मिल रहा है। मैं आम तौर पर एंड्रॉइड के लिए नया हूं, लेकिन इस त्रुटि ने मुझे स्टंप किया है। यहां मेरा मैनिफेस्ट है।एंड्रॉइड Google मैप्स क्लासNotFoundException
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="edu.purdue.cs.cs180.safewalk"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<uses-library android:name="com.google.android.maps" />
<activity
android:name=".RequestActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
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>
</manifest>
और यहां मेरा लेआउट MapView का उपयोग कैसे करता है। मुझे पता है कि मेरी एपीआई कुंजी सही है।
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="@string/mapskey" />
अंत में, यहां लॉगक से त्रुटि है।
12-03 13:11:25.861: E/AndroidRuntime(940): Caused by: java.lang.ClassNotFoundException: Didn't find class "edu.purdue.cs.cs180.safewalk.RequestActivity" on path: /system/framework/com.google.android.maps.jar:/data/app/edu.purdue.cs.cs180.safewalk-2.apk
संपादित करें: क्षमा करें, मैनिफेस्ट पूरी तरह से कॉपी नहीं हुआ था। हां, पैकेज सेट किया गया है। और मेरा आभासी डिवाइस लक्ष्य: Google एपीआई (Google Inc.) के साथ सेट किया गया है - एपीआई स्तर 17.
क्या आपने मैनिफेस्ट में एक ही पैकेज नाम सेट किया है? – AndroidLearner
उदा। '' –
dmon