안드로이드 에뮬레이터에 Google지도를 표시하려고하는데 회색 격자 만 있습니다. 다음은 내 매니페스트, XML 및 활동 코드입니다. 또한 Couldn't get connection factory client
오류가 발생합니다.Google지도가 안드로이드 에뮬레이터에 표시되지 않습니다.
package com.android.maptry;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;
public class Maap_tryActivity extends MapActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MapView mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
}
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
이에 제발 도와주세요 :
<?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.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:enabled="true"
android:apiKey="0l4sCTTyRmXTNo7k8DREHvEaLar2UmHGwnhZVHQ"
/>
</LinearLayout>
활동
?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.maptry"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<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:name=".Maap_tryActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
XML 레이아웃 :
은 여기 내 매니페스트 내가 포함 한 인터넷 권한입니다.
[안드로이드 MapActivity : 연결 팩토리 클라이언트를 가져올 수 없습니다] [1] [1] : http://stackoverflow.com/questions/6006835/android-mapactivity-couldnt-get -connection-factory-client – rishi
Thanx Friendz .... JDK 7을 사용하여 문제가 발생하여 MD5가 아니라 SHA1에서 키를 생성했습니다 ... 이제 JDK 6을 사용할 때 MD5에서 키를 생성 할 수 있습니다. . 그리고 내 문제를 해결 지금은 그 작동 괜찮아요 – user1132265