无法导入和运行谷歌纸板示例项目 [英] Trouble importing and running the Google Cardboard sample project

查看:178
本文介绍了无法导入和运行谷歌纸板示例项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在这里找到的项目: https://github.com/googlesamples/cardboard

You can find the project here: https://github.com/googlesamples/cardboard

我最后一次与Android合作是大约一年前,我尝试使用此VR项目重新进入它。所有我想做的事就是浪费时间与应用程序来感受它。

The last time I worked with android was about a year ago and I'm trying to use this VR project to get back into it. All I want to do is mess around with the app to get a feel for it.

不过,我一直无法得到它运行。我安装了Eclipse(JUNO)与JDK和Android SDK一个新的副本,并得到了来自SDK管理器的Andr​​oid 4.4W的东西。我还做了Nexus 5的AVD。

However, I haven't been able to get it running. I installed a fresh copy of Eclipse (juno) with the JDK and android SDK and got the android 4.4W stuff from the SDK manager. I also made a Nexus 5 AVD.

我的问题是,我试过多种选择'根'文件夹'导入为现有的Andr​​oid项目,其中没有一个已经运行的。安装MainActivity.apk'后错误:每次日食终端给出了一个未知失败安装错误。

My problem is that I've tried choosing multiple 'root' folders to 'import as existing android project' and none of them have been runnable. Each time the eclipse terminal gives an 'Installation error: Unknown failure' error after installing 'MainActivity.apk'.

我想通了主文件夹将是最可能的工作,因为它有清单和所有与Android项目有关的其他文件夹。

I figured the 'main' folder would be most likely to work since it has the manifest and all the other folders associated with android projects.

我如何让它运行?

推荐答案

这是不是一个Eclipse项目。这是与Android Studio和摇篮的使用。你的选择是:

That is not an Eclipse project. It is for use with Android Studio and Gradle. Your choices are:


  • 切换到Android Studio或

  • Switch to Android Studio, or

看看别人已经重组了code到Eclipse项目,或

See if somebody else has already reorganized that code into an Eclipse project, or

尝试自己进行重组,移动内容的src / main / 到适当的位置,并固定为现在被设置在<$事物清单C $ C>的build.gradle 或

Attempt to reorganize it yourself, moving the contents of src/main/ into appropriate locations and fixing up the manifest for things that are set now in build.gradle, or

找别的东西作为一个项目来重新进入Android开发

Find something else as a project to get back into Android development

这篇关于无法导入和运行谷歌纸板示例项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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