10

I heard at Google I/O 15 that Android Studio has now C++ support, the official documentation for the NDK only has instructions for Eclipse.

How does one get started with Android C++ development using Android Studio?

1

1 Answer 1

19

There is detailed instructions on the Android NDK Preview site.

The gist of it

  • Download Android Studio 1.3+
  • Install the NDK bundle from Tools > Android > SDK Manager NDK in android sdk manager
  • Import the hello-jn sample using File > Import Sample (Note: This sample is using the new gradle-experimental plugin) import sample diaglog
  • Click Run > Edit Configurations... and andd a new Android Native configuration native run configuration
    (source: android.com)

  • Run and debug your application as usual

A few things to try from there:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.