Android 谷歌地图应用程序在安卓系统中不工作
我是一个新的android开发者。 我制作了android谷歌地图应用程序, 但它只显示空的平铺(不显示地图) 我已经生成了5次API密钥并使用了它…但没有人在工作 ManifiestAndroid 谷歌地图应用程序在安卓系统中不工作,android,Android,我是一个新的android开发者。 我制作了android谷歌地图应用程序, 但它只显示空的平铺(不显示地图) 我已经生成了5次API密钥并使用了它…但没有人在工作 Manifiest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.akki" android:versi
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.akki"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.SET_DEBUG_APP" >
</uses-permission>`enter code here`
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<!-- Add Google Map Library -->
<uses-library android:name="com.google.android.maps" />
<activity
android:label="@string/app_name"
android:name=".GoogleMapPracticeActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<!-- Allow to connect with internet -->
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
`在这里输入代码`
xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="AIzxxxxxxxxxxxxxxxxxxxxxxxxxxxxMh2JQY"
android:clickable="true" />
</RelativeLayout>
使用Map v2,您可以在此处找到教程:
使用Map v2,您可以在此处找到教程:
使用谷歌地图api v1。它不推荐使用地图api v2。试试这个:使用谷歌地图api v1。其不推荐使用的use map api v2。请尝试以下操作: