NDK is not configured issue in android studio

后端 未结 6 938
Happy的楠姐
Happy的楠姐 2021-01-01 10:53

My Application is built successfully on Eclipse but fails to Build on android studio. It returns the error code Ndk is not Configured. Then I\'ve added ndk path

6条回答
  •  青春惊慌失措
    2021-01-01 11:46

    For whatever reason, setting ndk.dir on the properties file is not working for me. However, setting/exporting the variable ANDROID_NDK_HOME prior to launching android studio did the trick.

    Bash syntax (paths below are specific to my installation)

    export ANDROID_HOME=/opt/android-sdk-linux
    export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
    

    Environment

    Ubuntu Linux x64/GNU bash, version 4.4/Android Studio 2.2.3
    

提交回复
热议问题