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 9067347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:54:50+00:00 2026-06-16T16:54:50+00:00

I am trying to make an application as a school project and I MUST

  • 0

I am trying to make an application as a school project and I MUST implement Google Maps. I am fairly new to Android coding and now little of Java. So far I created this application using Google Maps API v2, I obtained a key, I added all the permissions and code in the manifest, I added the default Google example code to make a map simply appear but I get a crash and lots of errors when running the application. I also added existing code and set it to project library, I set target and compile with to be specifically with the API’s. I keep “banging my head” trying to get this to work. I saw other questions have similar problems but resolved with something I already have completed.
Since I’m having troubles adding code by text, I hope you guys can understand I used exactly what Google posted as their tutorial. I can’t do images due to my rep.

  • 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-16T16:54:52+00:00Added an answer on June 16, 2026 at 4:54 pm

    I managed to fix this thanks to newbostonforums and I am adding my findings for anyone else seeking help. You need to add google-play-services_lib to your project.

    Right click IMPORT
    Android->Existing Code->(SDK/extras/google/google_play_services/libproject/google-play-services_lib)

    Right click on project. Properties->Android->Library-ADD->(SDK/extras/google/google_play_services/libproject/google-play-services_lib

    Once you added the folder it will be “linked” with the project.

    In JAVA you must add

    MAKE SURE YOU IMPORT ALL RED UNDERLINED.

    public class Main extends FragmentActivity {
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    
        SupportMapFragment fragment = new SupportMapFragment();
        getSupportFragmentManager().beginTransaction()
                .add(android.R.id.content, fragment).commit();
    

    Then your XML can be at your choosing but it must include

    <?xml version="1.0" encoding="utf-8"?>
    <fragment xmlns:android="http://schemas.android.com/apk/res/android"
    android:name="com.google.android.gms.maps.SupportMapFragment"
    // POSSIBLY OPTIONAL
    android:id="@+id/map"
    

    You may replace android:name with class but I don’t know the difference. I believe they both work.

    However there are many ways to make it work and I am somewhat changing this method.

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

Sidebar

Related Questions

im am trying to make for a school project a client-server application in C#
I'm trying to make application for tablet with Android 2.3 with this kind of
im trying to make an android application that whenever a user conncects to a
I am trying to make my application part of android OS, i downloaded the
I am trying to make android application which should take ms word files i.e.(
I am trying to make an application for android that is based on IPAD
I am trying to make a simple chat client application for a school assignment.
I was trying to make application, it was working but now when I run
I am trying to make an application on android that takes the contact name
I'm trying to make an application level firewall for Linux , but for now

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.