Google地图API v2 Android Play在Play商店中加载地图时出错(Google Maps Api v2 Android Error loading map on Play Stor

编程入门 行业动态 更新时间:2024-10-21 06:08:43
Google地图API v2 Android Play在Play商店中加载地图时出错(Google Maps Api v2 Android Error loading map on Play Store)

我正在使用谷歌地图API,但是当我上传我的APK到Play商店时,我的地图不会加载,当我直接在我的设备上运行我的应用程序时,它的效果非常好。 当我生成我的Signet APK并在我的设备上测试它(没有Play商店,只需将我的APK发送到我的设备并手动安装它)它的作品完美,但如果我发布完全相同的APK Play商店,它不是可见的后,我downloaod它。

我的应用程序gradle

apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "development.senseit.com.mapasinteca" minSdkVersion 14 targetSdkVersion 26 versionCode 102 versionName "1.0.2" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } signingConfigs { release { storeFile file('C:\\Users\\jsalazar\\Desktop\\Certificados\\Android\\mapasInteca.jks') storePassword '****' keyAlias 'mapasinteca' keyPassword '****' } } buildTypes { debug { signingConfig signingConfigs.release } release { signingConfig signingConfigs.release } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.google.android.gms:play-services-maps:11.6.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' compile 'com.android.support:design:26.1.0' compile 'com.android.support:recyclerview-v7:26.1.0' }

我的谷歌API密钥是正确的。 我有2个指纹证书添加到谷歌控制台,一个用于调试,一个用于发布(我已经尝试删除调试版)。

I am working with google maps API but when i upload my APK to Play Store my map doesn't load, when i run my app directly on my device it works perfect. When i generate my Signet APK and test it on my device (without Play Store, just sending my APK to my device and installing it manually) it works perfect, but if i publish the exactly same APK to Play Store it isnt visible after i downloaod it.

my app gradle

apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "development.senseit.com.mapasinteca" minSdkVersion 14 targetSdkVersion 26 versionCode 102 versionName "1.0.2" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } signingConfigs { release { storeFile file('C:\\Users\\jsalazar\\Desktop\\Certificados\\Android\\mapasInteca.jks') storePassword '****' keyAlias 'mapasinteca' keyPassword '****' } } buildTypes { debug { signingConfig signingConfigs.release } release { signingConfig signingConfigs.release } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.google.android.gms:play-services-maps:11.6.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' compile 'com.android.support:design:26.1.0' compile 'com.android.support:recyclerview-v7:26.1.0' }

My google API key is correct. I have 2 finger print certificate added to google console, one for debug and one for release (i already trying removing the debug one).

最满意答案

我解决了我添加一个我缺少的SHA-1的问题,它在Google Play控制台(图像上的数字1)上,我只添加了2号

问题解决了

I solved my problem adding one SHA-1 that i was missing, it was on Google Play Console (number 1 on image) i was only adding number 2

Problem Solved

更多推荐

APK,android,Play,release,电脑培训,计算机培训,IT培训"/> <meta name="desc

本文发布于:2023-04-29 04:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1334535.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:地图   加载   商店   Android   Play

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!