2011-12-16 64 views
1

我遇到了同樣的問題,我已經意識到大多數人都在這裏......但是當我嘗試使用任何線程提供的解決方案修復它時,我無法成功。Android - 無法獲取連接工廠客戶端

這裏是我的AndroidManifest.xml(我想在這裏沒有任何問題 - 我知道有一些未使用的權限不支付任何注意):

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
     package="com.acilSRV.client" 
     android:versionCode="1" 
     android:versionName="1.0"> 
     <uses-sdk android:minSdkVersion="10" /> 

    <uses-permission android:name="android.permission.INTERNET"/> 
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 

    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission> 

    <application android:icon="@drawable/icon" android:label="@string/app_name"> 

     <uses-library android:name="com.google.android.maps"/> 
     <activity android:name=".AcilActivity" 
        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> 

我的main.xml(我複查API密鑰數時間和它的工作原理爲debug.keystore):

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    > 
    <TextView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:text="Address info" 
     android:layout_marginBottom="20dp" 
     android:layout_marginTop="10dp" 
     android:id="@+id/txt_addressinfo" 
     android:layout_marginLeft="5dp" 
     android:layout_marginRight="5dp" 
    /> 

    <com.google.android.maps.MapView 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:enabled="true" 
     android:clickable="true" 
     android:apiKey="****" 
     android:id="@+id/mapView" 
    /> 

</LinearLayout> 

因此,這些都是核心配置,我猜你一定同意,有一個與上面的代碼沒有問題......但是,爲什麼然後我得到「Couldn沒有連接工廠客戶端「錯誤r消息當我運行應用程序時 - 我有我的地圖外觀(證明api關鍵合法性),但是當我使用地理修復程序給不同的位置返回我LocationProvider.TEMPORARILY_UNAVAILABLE,我想我得到因爲上述錯誤消息...

我使用Ant構建Google Maps修訂版10 api ...有關這個奇怪情況的任何建議?它可能是由於debug.keystore密鑰庫文件引起的嗎?我是否需要測試另一個密鑰庫文件?

回答

0

是,這個問題是不是在你的代碼...但它在其他地方...... 也許你可以看到這一個,如果你have'nt: herehere

我也有這個問題too..those鏈接可以給你一些關於這個問題的信息 祝你好運:D

相關問題