Android, "ndk-build" not found in PATH - android-ndk

Got this error:
Error: Program "ndk-build" not found in PATH
PATH=[C:\Android\AndroidNDK\android-ndk-r9-windows-x86-legacy-toolchains\android-ndk-r9;C:\Program Files\Common Files\Microsoft Shared\Windows Live;...]
I have tried to set path to download the "bigger" package, but my eclipse can't recognize that. Any one know how to help me out? I have updated eclipse and the SDK for Android Tools

ndk-build should be in the root of the NDK, from your path above Add C:\Android\AndroidNDK and it should find it.

Try using ndk-build.cmd instead of just ndk-build.

Related

Upgrade Android Studio but AVD manager doesnt work

What went wrong:
Execution failed for task ':path_provider:compileDebugJavaWithJavac'.
Could not find tools.jar. Please check that C:\Program Files (x86)\Java\jre1.8.0_241 contains a valid JDK installation.
I changed gradle.properties, some files works by changing to org.gradle.jvmargs=-Xmx1024m
most of the files doesnt work.
please help
regards,
Your jdk path should resemble like this "C:\Program Files\Java\jdk1.8.0_241".
The path you've mentioned above is jre.
Also, I think you've recently changed your JAVA_PATH in your system or installed any other software to create JDK path in their installed director, which now conflicts with your old path.
Anyway, go to your Environmental Variables and check for the JAVA_PATH and PATH variables contain the correct jdk path or not.

MSBuild - MSB4019 Due to invalid path (Visual Studio 2019)

I am getting below error, while building C++ solution on VS2019 via command prompt.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.ToolsetLocation.props(50,3): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160Platforms\Win32\Platform.props" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160Platforms\Win32\Platform.props" is correct, and that the file exists on disk.
After observing it is very clear that there is an issue with the path created internally at some props file. It is not very clear why and from where this is coming up.
Any pointers would be of great help.
Thanks in advance.
MSBuild - MSB4019 Due to invalid path (Visual Studio 2019)
There is some errors when you install VS2019.
To fix it, please try this:
1) Open VS Installer, and make sure that you have installed v142 Build Tool.
Or run this on an elevated command prompt (admin): npm install --global --production windows-build-tools. If you don't have npm, I recommend installing it, otherwise this won't work.
2) I found that v160Platforms does not have \, is that the same as you description?
Please create a new environment variables called VCTargetsPath and put its value to this:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\
3) do a fix in vs installer or just update your VS if it is not thee latest version.
Then use developer command prompt for VS2019 as administrator to run your command.
In addition, you can use -verbosity:detailed in command line to see the detailed build log to check whether there is a obvious error. More info you can check this similar issue.
This was not due to the installation issues. This was caused due to VCTargetsPath passed to the MSBuild.exe. In VS2017, it was expecting the VCTargetsPath to be passed in the build command whereas it failed with construction of invalid path if we pass the value in VS2019. Hence after removing the VCTargetsPath from the command all worked well for me.
I ran into the exactly same problem today. The system env path of VCTargetsPath misses a slash at the end.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\ **<--- end slash**

VS2012 project cannot find output dll of Typescript project in bin folder

I'm writing a game in TypeScript and just upgraded to TS 0.8.2 and now VS 2012 web express complains with an error like this:
The system cannot find the path specified.
game -> C:\Users\me\pr\game.dll
I can confirm that this file exists on the file system
The most likely file it cannot find is actually...
c:\Program Files\Microsoft SDKs\TypeScript\0.8.1.1\tsc
Which is probably now found under
c:\Program Files\Microsoft SDKs\TypeScript\tsc
As they removed the version folder in 0.8.2.0 to save us from constantly updating this path in the project file!
The error message may be misleading - so check this path instead.
If you are using a 64 bit version of Windows, look in Program Files (x86) instead of the plain Program Files.

Rhodes setup and installation for Android in Windows

I am trying to install Rhodes for Android application development. I installed rhodes gem (version 3.2), Android SDK latest release and Android NDK (latest). I run "rhodes-setup" and gave the installation path of Java, Android SDK and NDK. When i try to run "rake run:abdroid" for a sample rhodes applocation, it shows as
"WARNING!!! Path to Android NDK contain spaces! It will not work because of the G
oogle toolchain restrictions. Move it to another location and reconfigure rhodes."
I moved to another location and tried a another version of NDK ( revision 6 and 6b). But still having error. Could please point out what i am doing wrong?
Thank u.
Make sure there are no spaces in the path, like the error message suggests.
Bad NDK Path
C:\Program Files (x86)\android-ndk-r4\
Good NDK Path
C:\source\sdks\android-ndk-r4\
Update the path to the NDK in the Rhodes build configuration files. Try running "rhodes-setup" again and pointing it to your new NDK path.
Just move your NDK folder to your root folder. I have it like this:
C:\android-ndk-r5b
Remember to configure rhodes setup after you have made this change and before running your program. You do this by running:
$ rhodes-setup
on the command prompt while in your app folder.

Include stdlib.h :No such file or directory in vc++

I compiled my c++ program in the directory
D:\Program Files\Microsoft Visual Studio 9.0\VC\bin
But stdlib.h is present in the path.
D:\Program Files\Microsoft Visual Studio 9.0\VC\include
While compiling my program, it throws the following error in the command prompt.
fatal error c1083:cannot open include file:"stdlib.h":No such file or directory
NMAKE : fatal error U1077 :'.\c1.exe' : return code '0x2
How to solve this issue.Please take a look into it.
Thanks.'
If you compile from the command-line, you should use the Visual Studio Command Prompt as it sets common environment variables that are used for compiling.
If for some reason you insist on using cmd.exe then you have to either add the include paths to the INCLUDE environment variable or you have to give the compiler the command-line parameter /IC:\Path\to\include
Details are available on MSDN
edit: well since this got recently upvoted I might as well add what I forgot last time. If you want to set up the environment variables that the Visual Studio Command Prompt uses you can just execute the vcvarsall.bat which is located in a directory like C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC for details consult the relevant MSDN page
Make sure you have the right platform toolset selected.
Project -> properties -> configuration properties -> Platform toolset
If you move a project from computer to computer via a flash drive or something, it can have an invalid toolset selected. That can cause intellisense to tell you that.

Resources