Eclipse is not accepting package:"com.google.android.ma

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Eclipse is not accepting package:"com.google.android.ma

Postby pranav09 » Sat Jan 09, 2010 2:19 pm

Hi everyone,

I have just started the to develop google map application with the simple example which display the latitude and longitude of current location means right now where i am. I gone through to get google map key as per the below link

http://code.google.com/android/add-ons/ ... apkey.html

I have also added essential line in main.xml file and also in AndroidManifest.xml file. That is look as below:

main.xml


Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:orientation="vertical"
  4.    android:layout_width="fill_parent"
  5.    android:layout_height="fill_parent"
  6.    >
  7. <com.google.android.maps.MapView
  8.                 android:layout_width="fill_parent"
  9.                 android:layout_height="fill_parent"
  10.                 android:enabled="true"
  11.                          android:clickable="true"
  12.                 android:apiKey="0ImDQVSqMxthgrky3qYO5o_BXAgb7_9hj1xnKHA"
  13.                 />
  14.  
  15. </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


AndroidManifest.xml
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3.      package="com.android.GoogleAPI"
  4.      android:versionCode="1"
  5.      android:versionName="1.0">
  6.      
  7.     <application android:icon="@drawable/icon" android:label="@string/app_name">
  8.  
  9.                 <uses-library android:name="com.google.android.maps"/>
  10.  
  11.         <activity android:name=".GoogleAPI" android:label="@string/app_name">
  12.             <intent-filter>
  13.                 <action android:name="android.intent.action.MAIN"/>
  14.                 <category android:name="android.intent.category.LAUNCHER"/>
  15.             </intent-filter>
  16.         </activity>
  17.     </application>
  18.     <uses-sdk android:minSdkVersion="3"/>
  19.     <uses-permission android:name="android.permission.INTERNET"/>
  20.     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  21.      
  22. </manifest>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4


But anyhow i am not able to use "com.google.android.maps" package in my coding. So, i can't go further without the mentioned package.

If anybody have any idea to resolve this problem, please share with me.

Thanks.
-----------------------
User avatar
pranav09
Senior Developer
Senior Developer
 
Posts: 128
Joined: Mon Jan 19, 2009 12:01 pm
Location: Ahmedabad, India

Top

Postby nhenze » Mon Jan 11, 2010 8:34 pm

You probably try to build your project using the wrong build target. If you use eclipse you can set your "Project Build Target" by selecting "Android" in your project's properties. You have to select one of the "Google APIs" targets.
nhenze
Freshman
Freshman
 
Posts: 9
Joined: Thu Dec 10, 2009 10:34 am

I got the solution of google map.

Postby pranav09 » Tue Jan 12, 2010 7:59 am

Hi nhenze,

Thank you for replying me. Actually, there was a problem with my sdk. When i downloaded and updated the sdk, i got the https://..... ssl error. So, i couldn't found the https://dl-ssl.google.com/android/repository/repository.xml. That's why i couldn't find and download the proper targets for the google map application.

After that i downloaded the new sdk and updated it. Now, my problem is resolve.

Thanks.

Regards.
------------------
Pranav
User avatar
pranav09
Senior Developer
Senior Developer
 
Posts: 128
Joined: Mon Jan 19, 2009 12:01 pm
Location: Ahmedabad, India

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests