Chris from Stafford
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
12/31/13 04:06 PM (10 years ago)

Maps error

Got my app running on Android but can't get maps set up I think this is the error but can't work out what it means Anyone out there have any clue? BT_screen_map:onCreateView EXCEPTION (1) java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/31/13 04:16 PM (10 years ago)
Hi Chris, Can you send me your AndroidManifest.xml file like I requested in the PM so I can compare it to mine? I'd like to figure out if there are any differences. Thanks! Mark
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/31/13 04:20 PM (10 years ago)
I have recompiled the project and gone through everything from scratch I will send you the Android Manifest to have a look at
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/31/13 04:24 PM (10 years ago)
Just sent it
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/31/13 04:29 PM (10 years ago)
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/31/13 04:40 PM (10 years ago)
That has done something but I am getting an error that google play services are not there but I have added the library and made the association as per the guide "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included."
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/31/13 04:49 PM (10 years ago)
Have you updated your Google Play Services? 1) They need to be the latest 2) Any updates seem to require a project 're-connect' when they're finished updating. Good Luck! Cheers! -- Smug
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/31/13 05:34 PM (10 years ago)
I have found that I can get the maps working with my debug.keystore but it doesn't work with the release keystore I made. I made a keystore as per instructions and I don't think it works
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/31/13 05:36 PM (10 years ago)
getting dalvik format error now Arghhh!!!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/31/13 05:36 PM (10 years ago)
If it works with one, it should work with the other. Keep trying; it shouldn't be long now. Cheers! -- Smug
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/31/13 05:37 PM (10 years ago)
i can't seem to be able to export my project now i get this dalvik error 1 message
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
12/31/13 05:52 PM (10 years ago)
clean rebuild and it works! Not sure how I got there but thanks to all the tips and help I've made it! Thanks guys
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/01/14 04:39 PM (10 years ago)
Good catch, Smug, and way to rock it Chris! Sorry to have dropped you guys in mid debug...haven't been feeling well lately, so I've not been online as much. As far as the key thing goes...keep in mind that you have to sign your app with the same keystore that you use to generate the API key. They have to match, or it won't work. Mark
 
Chris from Staffor...
Aspiring developer
Profile
Posts: 335
Reg: Oct 14, 2013
Stafford
5,750
like
01/02/14 01:21 AM (10 years ago)
What I did was start again with the API keys, once I had a two keys debug and release it suddenly worked.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.