1

在 Eclipse 中,当我需要创建原生 android 方法时,我会在项目的根目录创建 jni 文件夹。我应该在 Android Studio 项目的哪里创建这个文件夹?

4

1 回答 1

4

The structure of the project should be the same, so I'd put it in the same place.

That being said, Android Studio doesn't have a C/C++ features, at least not yet (because IDEA doesn't have it but there is huge demand for it and they are working it). Intellij is currently referring all NDK related questions back to Google at the moment.

Basically what I think you'd have to do is make a Build task inside of Android Studio to call the ndk-build.cmd (or some external task) yourself which isnt horrible, but there's not going to be a nice configuration screen to do it. If I'm not making sense, respond to this and I'll post a screen shot of what I'm talking about.

于 2013-05-19T09:42:40.380 回答