Go Back   Android Forums > Android Discussion > Android Applications
Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.

test: Reply
 
LinkBack Thread Tools
Old January 8th, 2013, 02:12 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Smile Andriod Maps - Class Error

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
tools:context=".TownMapActivity" >

<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.MapFragment" />

<!-- Tab Section -->

<include layout="@layout/tab_section" />

</RelativeLayout>

Now this gives me :

java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment

I have included the google-play-services.jar, and can see that class, but it always crashes the app.

Any ideas how to fix, have followed all the stuff on the andriod dev site, and can't get my map to load at all.

Advertisements
pinkfloydim is offline  
Reply With Quote
sponsored links
Old January 13th, 2013, 06:46 AM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually needed to add an external library into the build to get this to work. Not mentioned in the andriod docs. SO live and learn.
pinkfloydim is offline  
Reply With Quote
Reply
Tags
mapfragment


Go Back   Android Forums > Android Discussion > Android Applications
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:00 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.