English 中文(简体)
Upgraded to SDK2.3, now maps won t display
原标题:

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?

问题回答

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.





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签