- Learning Android Google Maps
- Raj Amal W.
- 164字
- 2021-07-09 21:54:31
Common problems and solutions
Common problems and their solutions are as follows:
java.lang.RuntimeException
: The API key is not found—Logcat.Your application will crash before opening. This is caused because the API key is not found in manifest.
To fix this, add the API key to
AndroidManifest.xml
Authorization failure—Logcat
: Your application will display an empty map on opening. This is caused because you have entered an invalid API key. You may have missed some strings in the key.To fix this, enter the API key without missing anything
This application will not run unless you update Google Play services
: This error is caused because you are using a lower version of Google play services than the version you used in your application.If you are using a physical device, you can fix this error by updating the Google Play services version. If you are using an emulator with the Google API, the only way to update is from the SDK Manager.
推薦閱讀
- Web程序設計及應用
- Android應用程序開發與典型案例
- 自制編譯器
- C語言程序設計(第3版)
- Learn to Create WordPress Themes by Building 5 Projects
- Instant Typeahead.js
- 征服RIA
- Windows Forensics Cookbook
- Apache Kafka Quick Start Guide
- The DevOps 2.5 Toolkit
- Hands-On Full Stack Development with Go
- Teaching with Google Classroom
- 單片機C語言程序設計實訓100例
- HTML5從入門到精通(第4版)
- 持續輕量級Java EE開發:編寫可測試的代碼