2011-12-16 3 views
1

대부분의 사람들이 여기에있는 것과 동일한 문제가 있습니다 ...하지만 어떤 스레드에서 제공되는 솔루션을 사용하여 해결하려고하면 성공할 수 없습니다.Android - 연결 팩토리 클라이언트를 얻을 수 없음

<?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 키를 여러 : - 여기

내 AndroidManifest.xml을 (좀하지 않은 권한이 어떤 관심을 지불하지 않는이 알고 같아요 문제는 여기에 없다)입니다 시간과는 하게 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> 

그래서 이러한 핵심 구성, 그리고 난 당신이 위의 코드에 문제가 없다는 것을 동의해야합니다 생각 ...하지만 "나오지 않았어을받을 이유는 다음 연결 팩토리 클라이언트를 가져올 수 없습니다. "erro r 메시지 - 응용 프로그램을 실행할 때 메시지가 표시됩니다 (API 키의 적법성을 입증하는). 그러나 지오 픽스를 사용하면을 반환하여 위와 같은 이유 때문에 LocationProvider.TEMPORARILY_UNAVAILABLE을 반환하는 다른 위치를 제공합니다. 오류 메시지 ...

Google지도 개정판 10 api에 건물을 개미로 사용하고 있습니다 ...이 이상한 사례에 대한 제안이 있으십니까? debug.keystore 키 저장소 파일로 인해 발생할 수 있습니까? 다른 키 저장소 파일을 테스트해야합니까?!

답변

0

네, 문제는 코드에 있지 ...하지만 당신이 have'nt 경우 어쩌면 당신이 하나를 볼 수 있습니다 ... 다른 곳의 : here 또는 here

가 나는 또한 그 문제를 가지고 이 링크는 문제에 대한 정보를 줄 수 있습니다. 행운을 빕니다 : D

관련 문제