2011-12-16 66 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

相关问题