Android MapsActivity在调试中工作,但在发行版+;安卓

Android MapsActivity在调试中工作,但在发行版+;安卓,android,android-activity,maps,Android,Android Activity,Maps,应用程序调试工作正常,但在版本中不起作用。 这是AndroidManifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.poldevs.pabloelmapas"> <

应用程序调试工作正常,但在版本中不起作用。 这是AndroidManifest

<?xml version="1.0" encoding="utf-8"?>


<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.poldevs.pabloelmapas">
    <!--
         The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
         Google Maps Android API v2, but you must specify either coarse or fine
         location permissions for the 'MyLocation' functionality.
    -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />

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




    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="AIzaSyCPHx0_******"/>


    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.AppCompat.NoActionBar">
        <activity android:name=".ChatGlobalActivity"></activity>
        <activity android:name=".fotoperfil" />
   
        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="@string/google_maps_key" />

        <activity
            android:name=".MapsActivity"
            android:label="@string/title_activity_maps" />
        <activity android:name=".ChatActivity" />
        <activity android:name=".Mapa_Activity" />
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

      

    </application>

</manifest>



在调试模式下工作但不在发布模式下的应用程序有时可能表明存在proguard问题。您是否尝试在build.gradle中禁用proguard

buildTypes {
    release {
        minifyEnabled false
    }
}

如果应用程序可以使用此更改,则您需要修改您的proguard配置文件。

在调试模式下工作但不在发布模式下的应用程序有时可能表示proguard出现问题。您是否尝试在build.gradle中禁用proguard

buildTypes {
    release {
        minifyEnabled false
    }
}

如果应用程序能与此更改一起工作,则您需要修改您的proguard配置文件。

您是否已为google map生成发布密钥。按照链接生成谷歌地图的发布密钥


在将应用程序发布到play store之前,您必须按照某些步骤使用应用程序签名密钥库创建发布密钥。

您是否为google map生成了发布密钥。按照链接生成谷歌地图的发布密钥

在将应用程序发布到play store之前,您必须执行一些步骤,使用应用程序签名密钥库创建发布密钥