Android谷歌地图显示灰色的瓷砖,但只有当它从日出导出

问题描述:

任何想法为什么它能正常工作,当我调试代码,但当我导出它时,灰色瓷砖显示任何想法?在此先感谢Android谷歌地图显示灰色的瓷砖,但只有当它从日出导出

我的xml文件看起来像这样我没有看到任何错误和我使用的代码(而不是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 2012-02-04 04:06:13

+0

这意味着地图不显示,我是对的吗? – 2012-02-04 04:06:28

+0

你应该发布一些代码,所以它会很容易得到最新的错误.... – 2012-02-04 05:12:12

请到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 2012-02-04 16:51:32

+0

好吧,知道它适用于我导出应用程序时,但在调试时它不会工作,并在出口它不会得到我的geoloaction,但当它的调试它会有任何想法? – M0NKEYRASH 2012-02-04 18:19:13