Nadal pojawia się komunikat „Nie można uzyskać klienta fabryki połączeń” Błąd
04-01 10: 17: 20.701: E / MapActivity (377): Nie można uzyskać klienta fabryki połączeń
Wszystko, co dostaję, to szare kafelki, a mapa się nie ładuje.
Hej wszystkim, wiem, że jest wiele podobnych postów, które dokładnie przejrzałem.
Może to być zezwolenie na dostęp do Internetu (dodałem to przed tagiem aplikacji), Or
używa -biblioteki android: name = "com.google.android.maps" (Dodano wewnątrz tagu aplikacji) lub
to zły klucz API.
Oto rzecz, którą wcześniej stworzyłem klucz debugowania, a mapa Google api v1 poprawnie wyświetlała mapę bez problemu. Później, kiedy otworzyłem ten projekt, nie rozwiązał on MapActivity, GeoPoint, MapController itp.
więc stworzyłem inny klucz debugowania, którego używam teraz w tym projekcie i dwukrotnie sprawdziłem, czy poprawnie wykonałem wszystkie kroki podczas tworzenia api.
Czy to (ja tworzę nowy debug nad starym) powoduje ten problem? Czy należy usunąć debug.keystore w C: Użytkownicy abc.android i debugować projekt, aby automatycznie utworzyć nowy? czy rozwiąże problem, czy też doprowadzi mnie do kolejnych problemów?
Od wczoraj szukam rozwiązania Wciąż mam problem, proszę mi pomóc. Z góry dziękuję, jeśli potrzebny jest jakikolwiek kod, dajcie mi znać, że je opublikuję.
MActivity.java
package com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import android.os.Bundle;
public class MActivity extends MapActivity {
MapController mControl;
GeoPoint GeoP;
MapView mapV;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.map);
mapV =(MapView)findViewById(R.id.mapView);
mapV.displayZoomControls(true);
mapV.setBuiltInZoomControls(true);
double lat = 6.796396;
double longi = 79.877823;
mControl = mapV.getController();
GeoP = new GeoPoint((int)( lat * 1E6 ),(int)( longi * 1E6 ));
mControl.animateTo(GeoP);
mControl.setZoom(13);
}
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
map.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/layoutbg"
android:orientation="vertical" >
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="AIzaSyCy32DkrrrrT-UBhoT8xiAW182qUaAqi3s"
android:enabled="true"
android:clickable="true" />
</RelativeLayout>
Oczywisty
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="17"/>
<permission
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.permission.MAPS_RECEIVE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<uses-library android:name="com.google.android.maps" />
<activity
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.MenuActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.KCLOGO" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.AddFromContactsActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.ADDFROMCONTACT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.MActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.MAPS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.LoginActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.LOGIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.SignupActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.SIGNUP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.AddToContactsActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.Aws0mEKCkreaTi0ns.GlobAlpSystracKerKC.ADDTOCONTACTS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyCy32DkrrrrT-UBhoT8xiAW182qUaAqi3s"/>
</application>
</manifest>