Android Studio 3.0.1 NDK fatal error: stdint.h: No such file or directory - android-ndk

My Application having native code was running perfect with previous Android Studio version. I just Updated to 3.0.1 and getting this error
/Users/salman.nazir/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h
fatal error: stdint.h: No such file or directory
I checked the directory, stdint.h file is there in the mentioned path. Should i need to set something to get that file accessed?
Note: I am using MacOS

I just remove the ndk-bundle (latest version 16) folder from the SDK folder and put there older NDK version (15c). I downloaded the previous ndk version here.
It seems to be problem with the latest NDK. So far, this is the hack for me to proceed.

The error says, that the cross-toolchain (e.g. gcc) cannot find the STL (aka libstdc++6) headers.
A closer look into Android Developer Blog reveals why.
The file in ~/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h redirects to a platform header and is not the actual header file.
[Edit]
Here's how to use the new unified headers replacing the platform headers.
And some further information about this topic.

Related

How can I update com.android.support:exifinterface version

Currently I am using Android Studio 2.3.3. I wanted to update the support library version from 25.3.1 to 26.0.1. So inside my build.gradle file I did all the necessery changes and changed all the support library versions from 25.3.1 to 26.0.1. After that when I synced the project it shows me an error(I have given a screenshot) in compile 'com.android.support:appcompat-v7:26.0.1
All com.android.support libraries must use the exact same version...Found versions 26.0.1,25.3.1.Examples include com.android.support:animated-vector-drawable:26.0.1 and com.android.support:exifinterface:25.3.1
The error screen
My question is that where can I find com.android.support:exifinterface to update
I tried the same in Android Studio 3.0.0. That showed the same error
Try this:~
compile 'com.android.support:design:26.0.0-alpha1'

Android Studio re-installation from 1.x.x to 2.3.3 version

1) I re-installed Android Studio from 1.x.x to 2.3.3 version. The installation guide said the difference is too big and suggested first the previous version be uninstalled. It appears uninstallation still leaves the previous Studio structure and AndroidStudio and SDK directories still are kept in their places. Then installation built a new version at locations AndroidStudio1 and SDK1.
But when I look in Settings for SDK location it points to SDK rather than to SDK1. Could it be a problem?
2) When trying to "Check out project from Version Control > GitHub" I receive the following error "Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified".
The sdk directory name is not a problem. You can always change to any sdk version you want
U need to install git first. Have you installed git?

How to set NDK Build path in Windows for Android studio

According to the openFrameWorks instructions, I import an example project, and the first error is this:
gradle version 2.2 is required. current version is 2.10
After changing it to "gradle version 2.2", I get this error:
NDK directory is invalid. Check NDK_ROOT path in paths.make
If I change NDK_ROOT to path_to/android-ndk-r10e following Google, it doesn't help either.
Any help would be appreciated.

Unsuccessful ndk build of my 2.6.7 Vuforia project in new Vuforia 3.0 SDK

I tried to run my ImageTargets 2.6.7 version in a new computer which runs new Vuforia SDK 3.0, android ndk 10 and all updated software according to Vuforia's Development Guide that I installed now, but I can't build successfully my C++ libraries, having the following error in Cygwin:
Android NDK: ERROR:jni/Android.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/../../../build/lib/armeabi/libVuforia.so exists or that its path is correct
/cygdrive/c/Development/Android/android-ndk-r10c/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
I updated all system paths in Environment variables, I made all alterations according to this link (https://developer.vuforia.com/resources/dev-guide/migrating-your-android-sdk-project) in my project, but the problem still remains.
What can I do please?
Your response is really important for me
Looks like the path of the libVuforia.so file is not correct. To eliminate the doubt - use a full path to the file (not ../../../). That can be configured in your jni/Android.mk file.

Grabble project sync failed

I have installed Android Studio. When I launch the program, there is the following error.
"Failed to find: com.android.support:appcompat-v7:10.+"
I have checked the SDK manager, Android Support Library and Android are installed.
Maybe my question appears to be stupid but I didn't find any answer.
[EDIT] I changed the
com.android.support:appcompat-v7:10.+
to:
compile 'com.android.support:appcompat-v7:21.0.2'
Now I have more than 400 lines of not found files:
http://pastebin.com/Sa4scRH1
In you build.gradle you have in the dependency section a line containing this string:
compile 'com.android.support:appcompat-v7:10.+'
replace it with this one:
compile 'com.android.support:appcompat-v7:21.0.2'
You are using there a quite old version of the compat library just use the newest one v21.0.2. If this still fails install the support repository from the SDK Manager.

Resources