简体   繁体   English

Android Studio中的Google Cardboard错误。 无法运行build.gradle?

[英]Google cardboard error in android studio. Cannot run build.gradle?

As I described above, I am having trouble getting the Google Cardboard sample code to open properly, and it seems to be a build error. 如上所述,我无法正常打开Goog​​le Cardboard示例代码,这似乎是构建错误。 Android studio, the android sdk, JDK are all recently updated. Android Studio,android sdk,JDK最近都已更新。 I am still able to create and open other android projects. 我仍然可以创建和打开其他android项目。 I downloaded the sample code from github, exactly following the instructions on the google cardboard webpage. 我严格按照Google纸板网页上的说明从github下载了示例代码。

The full error message is 完整的错误消息是

Cannot run program "C:\\GitHub\\cardboard-java\\build.gradle" (in directory "C:\\GitHub\\cardboard-java"): CreateProcess error=193, %1 is not a valid Win32 application: Cannot run program "C:\\GitHub\\cardboard-java\\build.gradle" (in directory "C:\\GitHub\\cardboard-java"): CreateProcess error=193, %1 is not a valid Win32 application

The instructions I've bee following can be found here , and I could not get past the first step in the "Build the app demo" section. 我可以遵循的说明可以在此处找到,而我无法超越“构建应用程序演示”部分中的第一步。 Any thoughts? 有什么想法吗?

Try going to Tools>Android>Synch Project With Gradle Files. 尝试转到工具> Android>与Gradle文件同步项目。 This might give you a bit more info. 这可能会给您更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM