谷歌地图是显示在发布Play商店中的APK后灰瓦

谷歌地图是显示在发布Play商店中的APK后灰瓦

问题描述:

我用谷歌地图Android的API V2的工作表现出一定的地图碎片在我的应用程序。 一切正常,直到我的应用程序发布在Play商店(我检查了我的出口APK发布前和sideloaded时,它的工作就好了)。

I work with Google Maps Android API v2 to show some Map Fragments in my App. Everything works until my App is published in the Play Store (I checked my exported APK before it is published and it worked just fine when sideloaded).

我有一个假设,但首先的情况: 我写并签字的应用程序(应用编程接口主要是从我的账户)。 当应用程序已准备就绪,另一人(在Play商店的另一个帐户)是发布应用程序。

I have an assumption, but first the situation: I write and sign the app (Also the API Key is from my account). When the app is ready, another person (with another account in the Play Store) is publishing the App.

难道API密钥必须从已发布的应用程序相同的帐户生成的?我AP preciate每一个提示!

Is it possible that the API Key has to be generated from the same account that is publishing the App? I appreciate every hint!!!

我的清单看起来是这样的:

My Manifest looks like this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.example.android"
android:versionCode="9"
android:versionName="2.2.0.1" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<permission android:name="de.example.android.permission.MAPS_RECEIVE"
            android:protectionLevel="signature"></permission> 
<uses-permission android:name="de.example.android.permission.MAPS_RECEIVE"/>    

<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-feature android:name="android.hardware.location" android:required="false"/> 
<uses-feature android:name="android.hardware.location.network" android:required="false"/>

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-feature android:name="android.hardware.location.gps" android:required="false"/>

<uses-feature android:glEsVersion="0x00020000" android:required="true"/>


<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppBaseTheme">

   <!-- GOOGLE MAPS START -->
        <meta-data 
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="..." />
   <!-- GOOGLE MAPS END -->

    <activity
        android:name="de.example.android.SplashScreen"
        android:label="@string/app_name" 
        android:screenOrientation="portrait"
         android:theme="@style/Theme.Splash">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity
        android:name="de.example.android.MainActivity"
        android:screenOrientation="portrait"
        android:icon="@drawable/ic_launcher_activity"
        android:theme="@style/AppBaseTheme"
        >
    </activity>

    <!-- This Activity is called from a lib  -->
    <activity
     android:name="de.example.testlib.android.MapActivity">                            
    </activity>

</application>

有没有人发布的应用程序辞职的APK与其他一些密钥库?

Did the person publishing the app resign the APK with some other keystore?