Answered by:
Trying to compile an Android NDK sample in Visual Studio

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
-
I would ask here:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=visualstudiogeneral
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by Dave PatrickMVP, Moderator Thursday, April 23, 2020 3:45 PM
- Marked as answer by Dave PatrickMVP, Moderator Monday, May 4, 2020 7:47 PM
Thursday, April 23, 2020 3:23 PMModerator -
I'd try asking for help over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Moderator Friday, April 24, 2020 12:21 AM
- Marked as answer by Dave PatrickMVP, Moderator Monday, May 4, 2020 7:47 PM
Thursday, April 23, 2020 3:46 PMModerator
All replies
-
I would ask here:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=visualstudiogeneral
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by Dave PatrickMVP, Moderator Thursday, April 23, 2020 3:45 PM
- Marked as answer by Dave PatrickMVP, Moderator Monday, May 4, 2020 7:47 PM
Thursday, April 23, 2020 3:23 PMModerator -
I'd try asking for help over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Moderator Friday, April 24, 2020 12:21 AM
- Marked as answer by Dave PatrickMVP, Moderator Monday, May 4, 2020 7:47 PM
Thursday, April 23, 2020 3:46 PMModerator -
Thank You Richard
Friday, April 24, 2020 9:50 AM -
Thank You Dave
Friday, April 24, 2020 9:50 AM -
You're welcome.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.Friday, April 24, 2020 11:05 AMModerator