[英]Application doesn't work without android studio
Well, when I run my app via android studio it works normally, if I install it from play market it doesn't work, but as soon as I launch android studio and it finds my emulator it starts working normally. 好吧,当我通过android studio运行我的应用程序时,它可以正常运行,如果我从Play Market安装它,则无法正常工作,但是一旦我启动android studio并找到我的模拟器,它便开始正常运行。 I bet the problem is with my manifest. 我敢打赌,问题出在我的清单上。
PS Application is using GoogleMaps and MS Azure Simple App. PS应用程序正在使用GoogleMaps和MS Azure简单应用程序。
Here is my AndroidManifest 这是我的AndroidManifest
<?xml version="1.0" encoding="utf-8"?>
<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"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<!-- Needed only if your app targets Android 5.0 (API level 21) or higher. -->
<uses-feature android:name="android.hardware.location.gps" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="My_APIKEY_is_actually_here:)" />
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
You probably have not added the SHA-1 fingerprint of your release key to your Google maps API key. 您可能尚未将发布密钥的SHA-1指纹添加到Google Maps API密钥中。 Follow the instructions on getting your SHA-1 fingerprints here -- https://developers.google.com/places/android-api/signup . 按照此处获取SHA-1指纹的说明进行操作-https: //developers.google.com/places/android-api/signup 。 Check in the API console to make sure you've added your release key in addition to your debug key. 检入API控制台,确保除调试密钥外还添加了发行密钥。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.