简体   繁体   中英

Cant't config downloaded (zip) NDK for Android Studio (windows 7)

so I tried to download NDK from StandAlone SDK manager and it didn't have the option! then I went to google developers and read some guides and understood how to get it via android Studio

there was an NDK option in SDK manager -> SDK tools tab , I checked it and after applying it started downloading it, but for some reason after download, it fails to install it (tried 2 time it fails at end of unzipping process at like 100% :| ) ***Note: I have enough space available, 4gb on windows drive, 20gb on SDK drive ***Note2: I deleted the NDK bundle folder and its contents created by the failed install in my SDK folder

so I went to NDK Download and downloaded the package from there , but I can't get it to work, gradle says "Error:NDK not configured. Download it with SDK manager.)"

I tried adding the NDKfolder to PATH variable or adding NDK_HOME variable but still the same error

Update 1 : I added ANDROID_NDK_HOME variable now it says : Error:A problem occurred configuring project ':TMessagesProj'.

I had this issue of

Error:NDK not configured. Download it with SDK manager.)

But I solved my problem with this link: Add C and C++ to your Project

you can skip to the heading Download the NDK and Build Tools, but read everything for knowledge.

This error might be, your Android Studio is not able to find the NDK location.

So, try doing this: right click on your project in Android Studio,select "Open Module Settings", select SDK location tab, and provide SDK and NDK locations.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM