我使用的是Android 1.0.2工作室在Mac上制定谷歌眼镜的应用程序。我一直在试图启动与在github上谷歌用品,但我遇到了一个问题,推荐项目之一。该指令说开放的Android Studio中,选择的从版本控制的退房项目,在下拉菜单中选择的Git,选择文件的位置,然后将其粘贴URL到GitHub上。所以我粘贴URL,当我点击的测试的按钮检查VCS仓库URL,它说,连接成功。之后我点击的克隆的在此窗口中会出现问题。我已阅读所有的文档指出一个或两个以上的窗口会弹出,我应该选择的确定的在两人面前,但是,从来都没有出现。该项目从来没有打开,当我试图找到项目,我选择的道路下面,只有一个名为GDK-秒表样本的空文件夹。那么,这是怎么回事了?
I am using Android Studio 1.0.2 on Mac to develop an app for Google Glass. I have been trying to start with one of the recommended projects that Google supplies on github, but I'm running into a problem. The instructions say to open Android Studio, select Check Out Project from Version Control, select Git in the dropdown menu, choose a location for the files, and then paste the url to the github. So I paste the url and when I click the test button to check the vcs repository url, it says the connection is successful. The problem occurs after I click Clone in this window. All documentation that I have read states that one or two more windows should pop up and that I should select OK in both of them, however, nothing ever shows up. The project never opens, and when I try to find the project following the path I chose, there is only an empty folder with the name "gdk-stopwatch-sample". So, what's going wrong?
我也尝试下载从GitHub zip文件,然后试图通过像Android的工作室启动窗口的另一个选择打开它的打开现有的Android Studio项目或导入非Android Studio项目的,但我很新的Android开发,我似乎无法选择正确的进口的gradle设置,使项目从来没有运行或建立正确,如果我能设法打开它们。我深信,启动这个过程中,最简单的方法将通过版本控制检查项目,但我不明白发生了什么事情错了,我找不到,讨论这个问题的任何文件。我将不胜AP preciate如何得到这个正在进行的任何帮助。
I have also tried downloading the zip file from github and then trying to open it via another selection in the Android Studio Startup window like Open an Existing Android Studio Project or Import Non-Android Studio Project but I am very new to Android development and I cannot seem to choose the correct gradle import settings so the projects never run or build correctly if I can manage to open them. I am convinced that the easiest way to start this process will be to check the project out through version control, but I don't understand what's going wrong and I can't find any documentation that discusses this problem. I would greatly appreciate any help on how to get this going.
应用在这里找到: github/googleglass/gdk-stopwatch-sample
说明: developers.google/glass/develop/patterns/ongoing-task
推荐答案我遇到同样的问题,因为你。 (还工作室的Android 1.0.2,但在Windows上)结果下面是我找到了解决办法:
I've met with the same problem as you. (also Android Studio 1.0.2, but on windows) Here's the solution I've found:
目前Android_studio,在下面的设置页面设置的git(我的路径是在Windows下...)
At Android_studio, set the git in the following settings page (My path is under Windows...)
要打开的 GDK-秒表样本的项目(使用本地gradle_2.2.1),结果做如下修改
to open the gdk-stopwatch-sample project (using the local gradle_2.2.1), make the following modifications
(1)。 \\ GDK-秒表样本\\程序\\的build.gradle 的(旧)的 runProguard 假(新) minifyEnabled 假
(1). \gdk-stopwatch-sample\app\build.gradle (old) runProguard false (new) minifyEnabled false
(2)。 \\ GDK-秒表样本\\的build.gradle (旧)的classpathcom.android.tools.build:gradle:0.12.+(新)类路径com.android.tools.build:gradle:1.0.0 +
(2). \gdk-stopwatch-sample\build.gradle (old) classpath 'com.android.tools.build:gradle:0.12.+' (new) classpath 'com.android.tools.build:gradle:1.0.0+'
(3)。安装的 SDK构建工具V20 的(从SDK管理器),如果还没有。
(3). install SDK Build tools v20 (from SDK manager), if not yet.
更多推荐
查看项目从版本控制系统出现故障
发布评论