2012-02-04 4 views
1

コードをデバッグするときに問題なく動作しますが、エクスポートすると灰色のタイルが表示されます。前もってありがとうAndroidのグーグルマップはグレーのタイルを表示していますが、エクリプスからエクスポートされた場合のみ

私のxmlファイルは、このように見えます。私は間違っていて、iveはコード(XMLではない)を使用していません。 以前はうまく動作していましたが、新しいキーストアを作成しようとします。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/linearLayout1" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" > 

    <TabHost 
     android:id="@+id/tabhost" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:layout_weight="1" > 

     <LinearLayout 
      android:id="@+id/linearLayout2" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:orientation="vertical" > 

      <TabWidget 
       android:id="@android:id/tabs" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" > 
      </TabWidget> 

      <FrameLayout 
       android:id="@android:id/tabcontent" 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" > 






       <LinearLayout 
        android:id="@+id/tab1" 
        android:layout_width="match_parent" 
        android:layout_height="match_parent" 
        android:orientation="vertical" > 

        <WebView 
         android:id="@+id/webView1" 
         android:layout_width="match_parent" 
         android:layout_height="match_parent" /> 

       </LinearLayout> 

       <LinearLayout 
        android:id="@+id/tab2" 
        android:layout_width="match_parent" 
        android:layout_height="match_parent" > 

        <com.google.android.maps.MapView 
         android:id="@+id/mvMain" 
         android:layout_width="match_parent" 
         android:layout_height="830dp" 
         android:layout_weight="6.20" 
         android:apiKey="0e6eU8JA0MTaiN1Z-pYPpdEgK1-cu_oKcRRaPLg" 
         android:clickable="true" 
         android:enabled="true" > 
        </com.google.android.maps.MapView> 

       </LinearLayout> 





       <LinearLayout 
        android:id="@+id/tab3" 
        android:layout_width="match_parent" 
        android:layout_height="match_parent" 
        android:orientation="vertical" > 

        <EditText 
         android:id="@+id/editText1" 
         android:layout_width="match_parent" 
         android:layout_height="wrap_content" 
         android:inputType="textEmailAddress" /> 

        <Button 
         android:id="@+id/button1" 
         android:layout_width="234dp" 
         android:layout_height="wrap_content" 
         android:text="Set Login" /> 

        <Button 
         android:id="@+id/button2" 
         android:layout_width="234dp" 
         android:layout_height="wrap_content" 
         android:text="Check Current Stats" /> 

        <TextView 
         android:id="@+id/textView1" 
         android:layout_width="match_parent" 
         android:layout_height="wrap_content" 
         android:textAppearance="?android:attr/textAppearanceLarge" /> 

        <TextView 
         android:id="@+id/textView2" 
         android:layout_width="match_parent" 
         android:layout_height="wrap_content" 
         android:textAppearance="?android:attr/textAppearanceLarge" android:text=""/> 
       </LinearLayout> 

      </FrameLayout> 
     </LinearLayout> 
    </TabHost> 

</LinearLayout> 
+0

署名に間違ったキーを使用していますか? – EboMike

+0

地図が表示されていないことを意味します、そうですか? –

+0

あなたはいくつかのコードを投稿する必要がありますので、間違ったものを得るのは簡単です。 –

答えて

1

このプロセスthrogh行ってください:

 1. Create New Certificate. 
     RightClick on Project > Android Tools> Export Signed Application Package. 

     2. create new keystore. 
      C:\Program Files\Java\jdk1.6.0_25\bin>keytool.exe -list -alias Fivecondition -keystore d:\Fivecondition 

     3.Go to http://code.google.com/android/add-ons/google-apis/maps-api-signup.html 

この使用後に同じ証明書を使用して、このキーと輸出APKを。

+0

私はそれをお試しいただきます。 – M0NKEYRASH

+0

しかし、私はアプリをエクスポートするときに動作することを知っているが、デバッグ時には動作しませんし、エクスポート時には私のジオグラフィックが得られませんが、そのデバッグ時にはアイデアはありますか? – M0NKEYRASH

関連する問題