Hi, Sorry for the delayed reply :( Today I tried to solve it ... I changed the api Google Inc 7. I removed all android jar then I add the Google Inc 7 api. Then worked for me ... Thanks to all you ...
On Tue, Feb 22, 2011 at 10:49 AM, pravin mohol <pravin.mo...@gmail.com>wrote: > change your workspace or change your plug-in..you will solve it. > > On Tue, Feb 22, 2011 at 1:35 PM, Nesim TUNÇ <nesimt...@gmail.com> wrote: > >> I tried changed to Google Inc.:Google APIs:7 as my target platform in >> default.properties file. Same error and plus layot files cannot show the >> graphical ui, "Missing theme" error appears >> >> On Mon, Feb 21, 2011 at 5:27 PM, Spiral123 <cumis...@gmail.com> wrote: >> >>> are you using the standard libraries and manually adding the Google >>> Map jar? >>> >>> if so, change the properties of your app to point to the Google APIs >>> instead. >>> >>> >>> >>> On Feb 21, 3:31 am, Nesim TUNÇ <nesimt...@gmail.com> wrote: >>> > Hi Awesome Developers! >>> > >>> > I'm trying to use Google Map in my Android App. My SDK version is 2.1 >>> update >>> > 1 (Level 7), I added the Google Map Lib (maps.jar) - Level 7 but still >>> > getting this error .. Here is my codes: >>> > >>> > Manifest file: >>> > >>> > <activity android:name="x.maps.GoogleMapActivity"/> >>> > <uses-library android:name="com.google.android.maps" >>> > android:required="true"/> is child node of application tag >>> > and these permissons are requested: >>> > <uses-permission >>> > android:name="android.permission.INTERNET"></uses-permission> >>> > <uses-permission >>> > >>> android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission> >>> > <uses-permission >>> android:name="android.permission.ACCESS_COARSE_LOCATION" /> >>> > <uses-permission android:name="android.permission.CALL_PHONE"/> >>> > <uses-permission android:name="android.permission.VIBRATE" /> >>> > <uses-permission android:name="android.permission.READ_PHONE_STATE" /> >>> > >>> > layout/mapview.xml >>> > <com.google.android.maps.MapView >>> > android:id="@+id/mapView" >>> > android:layout_width="fill_parent" >>> > android:layout_height="fill_parent" >>> > android:enabled="true" >>> > android:clickable="true" >>> > android:apiKey="my key goes here" >>> > /> >>> > >>> > and this my activity class >>> > >>> > public class GoogleMapActivity extends MapActivity { >>> > >>> > @Override >>> > protected void onCreate(Bundle savedInstanceState) { >>> > super.onCreate(savedInstanceState); >>> > setContentView(R.layout.mapview); >>> > >>> > } >>> > >>> > @Override >>> > protected boolean isRouteDisplayed() { >>> > // TODO Auto-generated method stub >>> > return false; >>> > >>> > } >>> > } >>> > >>> > and here is how I call it from a imagview click >>> > >>> > Intent mapIntent = new Intent(v.getContext(), >>> > x.maps.GoogleMapActivity.class); >>> > startActivity(mapIntent); >>> > >>> > And I get this error: >>> > >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): FATAL EXCEPTION: main >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): >>> > java.lang.IllegalStateException: Could not execute method of the >>> activity >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.view.View$1.onClick(View.java:2082) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.view.View.performClick(View.java:2461) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.view.View$PerformClick.run(View.java:8890) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.os.Handler.handleCallback(Handler.java:587) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.os.Handler.dispatchMessage(Handler.java:92) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.os.Looper.loop(Looper.java:123) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.app.ActivityThread.main(ActivityThread.java:4627) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > java.lang.reflect.Method.invokeNative(Native Method) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > java.lang.reflect.Method.invoke(Method.java:521) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > >>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: >>> 871) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > dalvik.system.NativeStart.main(Native Method) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by: >>> > java.lang.reflect.InvocationTargetException >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > >>> mekanist.placedetail.PlaceDetailActivity.showMap(PlaceDetailActivity.java:2 >>> 96) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > java.lang.reflect.Method.invokeNative(Native Method) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > java.lang.reflect.Method.invoke(Method.java:521) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > android.view.View$1.onClick(View.java:2077) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 11 more >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by: >>> > java.lang.NoClassDefFoundError: x.maps.GoogleMapActivity >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15 more >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by: >>> > java.lang.IllegalAccessError: Class ref in pre-verified class resolved >>> to >>> > unexpected implementation >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > dalvik.system.DexFile.defineClass(Native Method) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > java.lang.ClassLoader.loadClass(ClassLoader.java:573) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at >>> > java.lang.ClassLoader.loadClass(ClassLoader.java:532) >>> > 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15 more >>> > >>> > What is the problem? Thanks in advance ;) >>> > >>> > -- >>> > Nesim TUNÇ >>> > Senior Software Developer of Distributed Applications >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> >> >> >> -- >> Nesim TUNÇ >> Senior Software Developer of Distributed Applications >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en