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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:47:13+00:00 2026-06-03T08:47:13+00:00

I have a problem with mapView. This is code: Android Manifest: <uses-sdk android:minSdkVersion=8 />

  • 0

I have a problem with mapView. This is code:

Android Manifest:

<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET"/>
<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <uses-library android:name="com.google.android.maps"/>
    <activity
        android:label="@string/app_name"
        android:name=".TestjmkapActivity" >
        <intent-filter >
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Activity:

package test.pl.pl;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;

public class TestjmkapActivity extends MapActivity {

    MapView mapView;
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mapView = (MapView)findViewById(R.id.map);

        mapView.setBuiltInZoomControls(true);
        mapView.setTraffic(false);
        mapView.setSatellite(true);
        mapView.setStreetView(true);
    }

    @Override
    protected boolean isRouteDisplayed() {
        // TODO Auto-generated method stub
        return false;
    }
}

Layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

<com.google.maps.MapView
    android:id="@+id/map"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="100dp"
    android:layout_width="100dp"
        android:enabled="true"
    android:clickable="true"
    android:apiKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    />

</LinearLayout>

This is what I got in logcat when I try start it:

05-06 11:27:23.043: E/AndroidRuntime(565): FATAL EXCEPTION: main
05-06 11:27:23.043: E/AndroidRuntime(565): java.lang.RuntimeException: Unable to start activity ComponentInfo{test.pl.pl/test.pl.pl.TestjmkapActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class com.google.maps.MapView
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.os.Handler.dispatchMessage(Handler.java:99)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.os.Looper.loop(Looper.java:123)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.ActivityThread.main(ActivityThread.java:4627)
05-06 11:27:23.043: E/AndroidRuntime(565):  at java.lang.reflect.Method.invokeNative(Native Method)
05-06 11:27:23.043: E/AndroidRuntime(565):  at java.lang.reflect.Method.invoke(Method.java:521)
05-06 11:27:23.043: E/AndroidRuntime(565):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-06 11:27:23.043: E/AndroidRuntime(565):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-06 11:27:23.043: E/AndroidRuntime(565):  at dalvik.system.NativeStart.main(Native Method)
05-06 11:27:23.043: E/AndroidRuntime(565): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class com.google.maps.MapView
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-06 11:27:23.043: E/AndroidRuntime(565):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.Activity.setContentView(Activity.java:1647)
05-06 11:27:23.043: E/AndroidRuntime(565):  at test.pl.pl.TestjmkapActivity.onCreate(TestjmkapActivity.java:13)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
05-06 11:27:23.043: E/AndroidRuntime(565):  ... 11 more
05-06 11:27:23.043: E/AndroidRuntime(565): Caused by: java.lang.ClassNotFoundException: com.google.maps.MapView in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/test.pl.pl-2.apk]
05-06 11:27:23.043: E/AndroidRuntime(565):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
05-06 11:27:23.043: E/AndroidRuntime(565):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
05-06 11:27:23.043: E/AndroidRuntime(565):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.view.LayoutInflater.createView(LayoutInflater.java:466)
05-06 11:27:23.043: E/AndroidRuntime(565):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
05-06 11:27:23.043: E/AndroidRuntime(565):  ... 20 more

Where is the problem?

  • 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-03T08:47:15+00:00Added an answer on June 3, 2026 at 8:47 am

    Maybe this line in xml mapview makes it fail:

    xmlns:android="http://schemas.android.com/apk/res/android"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that uses the mapview-overlay-manager code to draw map markers on
I have problem with Android using the class HttpUrlConnection my method is this: public
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I am developing an Android application with MapView and I have a very strange
I have problem thinking this trough with PHP & Mysql . I have read
I have a MKMapView (also a UIPopoverControllerDelegate) with Annotations. This MapView has, in the
I am new to Android development and I have a problem that I have
I have a problem with the MapView. Here's my scenario: I can successfully create
I have a mapview, with itemizedoverlays, exactly like in the example of android developers
I have a map application using an in-house map engine on Android. I'm working

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.