尝试使用GoogleMap创建应用时,我在Android Studio中遇到了很多麻烦.
之前我已经按照以下指南(几乎)没有使用Eclipse作为我的IDE的问题:
https://developers.google.com/maps/documentation/android/start
我之前从未使用过Android Studio,而且整个项目/模块范例都遇到了困难.
我无法成功配置Google Play服务SDK http://developer.android.com/google/play-services/setup.html
这是我得到的一个奇怪的错误:
Gradle: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':MyMapApp:compileDebug'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
最近我迁移到基于IntelliJ 的New Android Studio IDE
我遵循的指南是:
https://developers.google.com/maps/documentation/android/start(基础知识)
如何在Android Studio中使用Google Maps Api v2创建Android应用程序? (用于将所需的Google Play服务和支持库导入android studio)
Android Studio正确检测到所有库,我没有得到任何"库未找到错误".该项目没有显示错误.然后,当我试图编译它时,我得到了这个错误.
Gradle:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':AID-AmritaInfoDesk:compileDebug'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
Run Code Online (Sandbox Code Playgroud)
这是我的explorer.java …
android google-maps google-play-services google-maps-android-api-2 android-studio