[英]Google Maps API on android device and android emulator not working
TL;DR: No error. TL; DR:没有错误。 Smooth run/build.
平稳运行/构建。 But Google Maps Activity template not running on emulator and device but the Google Maps from the Play Store is running smooth.
但是Google Maps Activity模板未在模拟器和设备上运行,但Play商店中的Google Maps运行顺利。
I just created a new project from Android Studio using their Google Maps Activity template. 我刚刚使用他们的Google Maps Activity模板从Android Studio创建了一个新项目。 My After my project loaded, the only thing I modified was the build.gradle(Module: app) and added this line of code
我的项目加载后,唯一修改的是build.gradle(Module:app)并添加了以下代码
defaultConfig{
multiDexEnabled true
}
After that I click Run. 之后,我单击运行。 The project was successful in build/compile as I can see it already installed on my Android Emulator, Bluestacks, but it is not opening.
该项目已成功构建/编译,因为我可以看到它已经安装在我的Android仿真器Bluestacks上,但没有打开。 No errors, no anything.
没有错误,没有任何东西。 The app just kept on crashing.
该应用程序一直崩溃。
Out of desperation, I installed Google Maps from Play Store in my Bluestacks because I thought that if my App is not running then so should the Google Map. 绝望的是,我从Bluestacks中的Play商店安装了Google Maps,因为我认为如果我的应用程序没有运行,那么Google Map也应该运行。 But the Google Map runs perfectly.
但是Google Map可以完美运行。 So I thought that the problem is probably on my project.
所以我认为问题可能出在我的项目上。 I also tried creating a basic android app then installed it on my emulator because I thought the emulator was the problem but still no luck.
我还尝试创建一个基本的Android应用程序,然后将其安装在模拟器上,因为我认为模拟器是问题所在,但仍然没有运气。
I also installed my app on my android device but still not running. 我还在Android设备上安装了我的应用,但仍未运行。 "My Application has stopped working"
“我的应用程序已停止工作”
Android Studio ver 2.2.3 Android Studio版本2.2.3
Latest Bluestacks 最新的Bluestacks
I chose the Android Studio Minimum SDK: API 17 我选择了Android Studio最低SDK:API 17
This problem came with Oreo. 这个问题来自奥利奥。 Here's the solution.
这是解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.