将 Google 示例 Android 项目导入 Android Studio 的正确方法 [英] Correct way to import a Google sample Android project to Android Studio

查看:37
本文介绍了将 Google 示例 Android 项目导入 Android Studio 的正确方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 http://developer 的示例项目.android.com/training/location/receive-location-updates.html、LocationUpdates.zip,在 Android Studio 中.

I want to play with the sample project at http://developer.android.com/training/location/receive-location-updates.html, LocationUpdates.zip, in Android Studio.

我尝试使用文件">导入项目",但最终出现了大量错误:

I have tried to use File > Import Project but end up with a load of errors:

有很多关于将 Eclipse 项目导入到 Android Studio 的问题,但遵循这些对我没有帮助.

There are many questions about importing an Eclipse project to Android Studio but following those didn't help me.

推荐答案

Android Studio v1.0+ 现在可以通过 File->Import Sample 轻松导入示例项目.

Android Studio v1.0+ now offers easy importing of the sample projects via File->Import Sample.

更新:从 v1.3(大致)开始,现在可以在 File->New->Import sample 中找到该选项.(感谢@johanvs)

Update: Since v1.3 (roughly), the option can now be found at File->New->Import sample. (Thanks to @johanvs)

这篇关于将 Google 示例 Android 项目导入 Android Studio 的正确方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆