none
Trying to compile an Android NDK sample in Visual Studio RRS feed

  • Question

  • Hello all, I am trying to get an NDK sample to compile.

    I want to develop Android software on Visual Studio and to do so I want to clone a project from one of the samples provided in the NDK. To keep things simple I am starting with hello-neon.

    I am using Visual Studio 2019 and Windows 10.

    I have already gone into Control Panel>System>Advanced System Settings>Environment Variables.

    I have JAVA_HOME, ANT_HOME and NDK_HOME correctly set up.

    I type File->New->VisualGDB Project . Then I choose “Android Project Wizard” and give the Project its name. Then I type “Add”.

    I go into Configure NDK/SDK Locations.  I give it Android NDK Path as “C:\ADev\android-ndk-r21”.

    I believe I have the JDK and SDK path set up correctly too. I hit OK

    I choose the third option “Clone a sample from NDK”. Then I hit ‘Next>’

    I am given the screen called “New Android Project”. This is where I am expecting to see a list of the NDK projects but they do not appear. I get the error message “Missing NDK Samples”.

    I have tried moving the hello-neon sample project around but no matter where I put it Visual Studio can’t find it. Similarly there is no way to find out where Visual Studio is actually looking for the NDK samples.

    Any help much appreciated.

    Peadar

    Thursday, April 23, 2020 2:39 PM

Answers

All replies