0
votes

My fault for being impatient but I've just installed Gingerbread SDK and the new ADT plugin for Eclipse on Eclipse 3.5 Now when I run an existing Google maps project which has worked fine on 2.2, I see no map displayed when running in Eclipse, just like as if I had the wrong debug maps API key. (I just get the grey screen and the Google logo bottom left.)

I have the build path using the old Google APIs [Android 2.1 update1] just like it was before and the target AVD is Google API level 7 as before. (I also created a new Google API level 7 and that doesn't work either).

It seems that something in the backward compatibility is broken somewhere. The only thing in logcat which may be of significance is:

12-06 19:10:31.095: ERROR/ActivityThread(231): Failed to find provider info for com.google.settings

where 231 is the PID of my application.

All suggestions will be gratefully received

(I have checked with Google that my debug API key is still OK)

(I tried to add a Gingerbread tag to this question, but don't have enough rep. Perhaps someone would like to add one?)

For Octavian:

part of manifest.xml

<uses-sdk android:minSdkVersion="4" />

default.properties

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
# 
# This file must be checked in Version Control Systems.
# 
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=Google Inc.:Google APIs:7
apk-configurations=

I imported the sample MapsDemo project from the addon, pasted my API key in the xml and see this:

12-06 21:55:16.722: ERROR/MapActivity(492): Couldn't get connection factory client

in the logcat (492 is the PID of the sample app, I still get just the grey screen - no map) I wonder if it's relevant?

UPDATE

It's not just the maps application. Every single application that requires network connectivity on every AVD (newly created or pre-existing) fails to connect. The built in browser can't find google. The build in app called "maps" comes up with "loading", then "Network failure - This application requires a working data connection".

What have I done? Please suggest how can I fix it?

1
Im guessing you did build over Gingerbread with googles api, and not just regular 2.3 android, right? - blindstuff
Yes I added the new Google jar (level 9) - NickT
Could you please post the <uses-sdk ... /> part of your AndroidManifest.xml and also the content of your default.properties. - Octavian A. Damiean
Have you tried deleting the Emulator and recreating it? Just in case. - blindstuff
I've made several new AVDs 1.6, 2.1, 2.2, 2.3 - none of them work, nor do the old ones that were there when I just had 2.2. It's exactly the same in Eclipse Helios too. Helios worked OK except that the code completion was very slow as reported by many others. I only upgraded to 2.3, hoping that the Helios problems were fixed, now I'm wondering how to back out - NickT

1 Answers

0
votes

Works perfectly on my AVD. Make sure to test it against the correct platform. That means make sure to create a 2.3 Google APIs AVD.