Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8169435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:50:52+00:00 2026-06-06T20:50:52+00:00

I am trying to get google maps to work in my android project. I

  • 0

I am trying to get google maps to work in my android project. I have already got the md5 key and signed up with google to get the api key, but now when i am trying to display the map, I get an error when importing it. “com.google” has the sqiqly red line under it.

Can anyone help?
Thanks

this is my xml file: (note: i replaced the key with ‘my_key’ since i didnt want to make it public)

<com.google.android.maps.MapView
   android:id="my_map"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:enabled="true"
   android:clickable="true"
   android:apiKey="my_key"/>

and for the java file:

package com.escortme.basic;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import com.google.android.maps.MapActivity; // ERROR
import com.google.android.maps.MapView;     // ERROR
import android.os.Bundle;

public class Police_ViewActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pol_view);
    }

    public void quit_button_action(View view){
        finish();
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:50:53+00:00Added an answer on June 6, 2026 at 8:50 pm

    It sounds like you don’t have the Google APIs referenced by your project. Assuming you’re using Eclipse, view the properties of your project and select Android and check that Google APIs is checked rather than simply an Android version.

    You may need to download the Google APIs if you haven’t already. You can do this through the Android SDK Manager.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get a google API key to add google maps to
I am trying to get started with the Google Maps API, but I'm finding
I'm trying to get mouseover to work polygons in google maps api v3. I've
I'm trying to get my hands dirty on Google Maps API v3. But now
I've been trying to get a certain Google API to work for two days
I'm trying to get the google maps for websites API working on my php
I am trying to get Marker Manager to work on Google Maps V3. I've
Trying to get gmaps4rails to work in a rails 3 project. I have everything
I'm having a problem with getting my Google Maps API key to work. I
I'm trying to get longitude and latitude values from the google maps api with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.