첫 번째 Google지도 앱을 만들지 만 몇 가지 문제가있어 그 이유를 파악할 수 없습니다. 나는 ClassNotFoundException을 얻고있다. 나는 일반적으로 Android에 익숙하지 않지만이 오류는 나를 곤경에 빠뜨렸다. 내 매니페스트가 있습니다.Android Google지도 ClassNotFoundException
<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를 사용하는 방법은 다음과 같습니다. 내 API 키가 정확하다는 것을 알고 있습니다.
<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" />
마지막으로 다음은 logcat의 오류입니다.
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 API (Google Inc.) - API 수준 17로 설정됩니다.
manifest에 동일한 패키지 이름을 설정 했습니까? – AndroidLearner
예 : '' –
dmon