Jump to content

Recommended Posts

Posted

Hey guys I have a big problem here.I want to build Android apk files with the vs-android framework and the Android SDK/NDK.

So now in the sample project I have to set the variable $(AndroidNdkDir) to a value , but it's now set to <unset> .

 

Well I can see it when I opne the project properties and go to Debugging -> Remote Command Arguments -> (Dropdown ) Change -> Makros>> and there is a table with that stuff but I can't change it...

 

Well I'm searching for 1,5 hours now and can't find hot to do that. On some sites there are some commands like setx AndroidNdkDir "C:...." .... but where ?

 

Thanks

Posted

I'm assuming you are trying to set an environment path variable... in Visual studio check the menu for tools / vs command line, then type: set AndroidNdkDir="c:\your path here" ... you can check if a variable is set by just typing: set name_of_variable, and if it exists it will print out it's value.. if you try this in a regular windows cmd the set command only works for that cmd session, global environment variables can be edited from control panel / system / advanced / environment variables

Posted

You can put environment variables in c:\autoexec.bat, like this:

SET ANDROIDNDKDIR=C:\PRG\NDK

Or the new style is to put them in the My Computer/Properties/Advanced System Settings/Environment Variables.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

So this kind of variable isn't only for Visual Studio ? When I set it with cmd it show me the same error in Visual Studio.

I haven't got the menu !Tools" , just have the express version :(

Posted

You have to set it in your system > environment variables as already told.

 

If you have Win Vista+, you simply can type "environment" into windows search and get the configuration directly.

Posted

I usually have stacks of bat/ps1 files that set these for me in a shell. I learned this trick while working at a retarded fortune 500 that locked down admin access on my box.

Posted

I don't think Visual Studio has anyway anything to do with Android NDK, because you need mingw64 or cygwin to compile with it.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

I don't think Visual Studio has anyway anything to do with Android NDK, because you need mingw64 or cygwin to compile with it.

 

msvc 2012 supports arm but i am going to keep pretending it doesnt.

Posted

That is so wrong, it's just a horrible idea, why would anyone in their right mind do it?

 

I was a .net 'build master' for a company. This link made me see the words msbuild again. There needs to be blood. I double dog dare anyone to integrate an open source testing tool(which are the only good ones) as part of a tfs build with reports working /fml

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...