Java Android谷歌地图显示灰色瓷砖,但仅当其从eclipse导出时

Java Android谷歌地图显示灰色瓷砖,但仅当其从eclipse导出时,java,android,Java,Android,你知道为什么我调试代码时它工作得很好吗?但是当我导出代码时,灰色的瓷砖会显示出你的想法吗?提前谢谢 我的xml文件看起来像这样,我没有看到任何错误,我使用了代码(不是xml) 之前,它运行良好,我将尝试创建一个新的密钥库 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayout1" android:layout_width="f

你知道为什么我调试代码时它工作得很好吗?但是当我导出代码时,灰色的瓷砖会显示出你的想法吗?提前谢谢

我的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>

请完成此过程:

      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。

请执行此过程:

      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。

您使用了错误的密钥进行签名?这意味着地图没有显示,对吗?您应该发布一些代码,这样很容易出错……您使用了错误的密钥进行签名?这意味着地图没有显示,对吗?您应该发布一些代码,所以很容易出错……好吧,知道它在我导出应用程序时工作,但在调试时不工作,在导出时它不会得到我的地理位置,但在调试时它会有任何想法?好吧,知道它在我导出应用程序时工作,但在调试时它不工作,在导出时,它不会得到我的geoloaction,但当它调试时,它会有任何想法吗?