如何在 Cocos2d-x 中使用 Android Studio [英] How to use Android Studio with Cocos2d-x

查看:28
本文介绍了如何在 Cocos2d-x 中使用 Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我作为一名 android 程序员工作了不到一年,我刚刚开始学习 android 游戏开发.我选择使用的框架是 Cocos2d-x.

I work as an android programmer for just under a year now, and I just started to learn about android game development. The framework I choose to work with is Cocos2d-x.

我看过有关如何在 Eclipse 中使用 Cocos2d-x 的指南和教程,但我真的很想知道它是否可以与 Android Studio 一起使用.

I have seen guides and tutorials on how to use Cocos2d-x with eclipse, but I'd really like to know if it's possible to be used with Android Studio.

据我所知,现在可以在 Android Studio 中使用 gradle 构建 NDK 项目,这是个好消息.尽管如此,我还没有找到有关使用 Android Studio 进行 C++ 编程的任何信息.Eclipse 使用 CDC(https://www.eclipse.org/cdt/)插件来实现这一点.

From what I've read, it is now possible to build NDK projects with gradle in Android Studio, which is good news. Nevertheless, I have yet to find any information about C++ programming using Android Studio. Eclipse uses the CDC ( https://www.eclipse.org/cdt/ ) plugin to achieve this.

有没有类似的东西可以和 Android Studio 一起使用?我找到了一些支持 IntelliJ 平台的 C/C++ 插件,但它们不再更新.

Is there anything similar to be used with Android Studio? I have found some C/C++ enabling plugins for the IntelliJ Platform, but they were no longer updated.

有没有其他人试过这个?它起作用了吗?像我这样第一次处理这类问题的新手,能否提供一个分步指南?

Has anyone else tried this before? Did it work? Can you provide a step-by-step guide, for a newbie like me, who's dealing with this kind of problems for the first time?

感谢您的时间,

哈克姆

推荐答案

Android Studio 目前没有很好地设置本地编程.虽然构建系统支持 NDK,但没有对 C++ 文件的编辑器支持(并不是说它不起作用,但 IDE 不会为您提供任何编辑帮助),也没有任何调试支持.JetBrains 宣布他们正在为 IntelliJ 提供新的 C++ 支持,这是我们正在为 Android Studio 寻找的东西,但它还没有在路线图上.

Android Studio currently isn't well set-up for native programming. While the build system supports the NDK, there's no editor support for C++ files (it's not as if it won't work, but the IDE won't give you any editing assistance), and neither is there any debugging support. JetBrains has announced that they're working on new C++ support for IntelliJ, and this is something we're looking at for Android Studio, but it's not on the roadmap yet.

这篇关于如何在 Cocos2d-x 中使用 Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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