Now i have this error:-

Sorry!
The application mapview
(process com.map.view) has stopped unexpectedly
please try again.

========Log Cat ============

02-14 15:42:59.296: WARN/dalvikvm(393): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
02-14 15:42:59.327: ERROR/AndroidRuntime(393): FATAL EXCEPTION: main
02-14 15:42:59.327: ERROR/AndroidRuntime(393):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.map.view/com.map.view.mapview}:
android.view.InflateException: Binary XML file line #5: Error
inflating class com.google.android.maps.MapView
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.os.Handler.dispatchMessage(Handler.java:99)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.os.Looper.loop(Looper.java:123)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
java.lang.reflect.Method.invokeNative(Native Method)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
java.lang.reflect.Method.invoke(Method.java:521)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
dalvik.system.NativeStart.main(Native Method)
02-14 15:42:59.327: ERROR/AndroidRuntime(393): Caused by:
android.view.InflateException: Binary XML file line #5: Error
inflating class com.google.android.maps.MapView
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.view.LayoutInflater.createView(LayoutInflater.java:513)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
198)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.Activity.setContentView(Activity.java:1647)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
com.map.view.mapview.onCreate(mapview.java:12)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     ... 11 more
02-14 15:42:59.327: ERROR/AndroidRuntime(393): Caused by:
java.lang.reflect.InvocationTargetException
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
com.google.android.maps.MapView.<init>(MapView.java:238)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
java.lang.reflect.Constructor.constructNative(Native Method)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
android.view.LayoutInflater.createView(LayoutInflater.java:500)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     ... 21 more
02-14 15:42:59.327: ERROR/AndroidRuntime(393): Caused by:
java.lang.IllegalArgumentException: MapViews can only be created
inside instances of MapActivity.
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
com.google.android.maps.MapView.<init>(MapView.java:282)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     at
com.google.android.maps.MapView.<init>(MapView.java:255)
02-14 15:42:59.327: ERROR/AndroidRuntime(393):     ... 25 more


On Feb 14, 3:10 pm, Samsung Galaxy <atif.musad...@gmail.com> wrote:
> Found the solution: writing here for future references.
>
> as i am using windows 7 so it requires administration rights to
> install these add ons.
>
> So when you run the android SDK manager instead of double click user
> right click and run as a administrator. then it will ask for
> permission by doing yes you will be able to install these add ons. Its
> currently installing on my PC hope every thing will run fine.
>
> will get you back in case of Error. this all is for windows 7 user may
> be also for Vista for other OS i don't know.
>
> Thanks
>
> On Feb 14, 2:57 pm, Atif Musaddaq <atif.musad...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi, trekingapp
>
> > As suggested i did the same but again I have the same problem.
>
> > See snapshot. why it shows me nothing is installed :-(
>
> > Atif
>
> > On Mon, Feb 14, 2011 at 2:10 PM, Atif Musaddaq 
> > <atif.musad...@gmail.com>wrote:
>
> > > Hi,
>
> > > I am facing this problem.
>
> > > Logcat:-
> > > unavailable shared library com.google.android.maps
>
> > > Solution i found on the Internet:-
> > > In the properties of your project, click Android: the project build target
> > > should be Google APIs
> > > Then map.jar gets included like android jar
>
> > > Also, when using the emulator for maps related programming choose Google
> > > APIs as the target
>
> > > *Now In my project I could not find option to set Google APIs as the
> > > target. See attached snapshot, what i should do now. How i can add maps in
> > > my project ?*
>
> > > --
> > > Atif Musaddaq
>
> > --
> > Atif Musaddaq
> > Master in Media Informatics,
> > RWTH Aachen & University of Bonn,
> > Germany.
> > atif.musad...@rwth-aachen.de
>
> > *”Design can be art. Design can be aesthetics. Design is so simple, that’s
> > why it is so complicated.” —Paul Rand*
>
> >  install_packages.jpg
> > 592KViewDownload

-- 
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

Reply via email to