Android studio Where to install NDK file? (downloaded it in zip)

前端 未结 4 1065
予麋鹿
予麋鹿 2020-11-29 07:18

My android studio said it wanted to update. But when I did I tried to update it but it wouldn\'t work so I had to launch:
C:\\Users\\username\\AppData\\Local\\And

4条回答
  •  旧巷少年郎
    2020-11-29 07:50

    In Mac, With Android studio 3.3.2, SDK Manager keeps choosing new temporary folder to download the ndk-bundle. The following steps helped to install the downloaded ndk zip file.

    1. Go to SDK manager, start downloading NDK.
    2. Go to ~/Library/Android/sdk/ndk-bundle/.installer
    3. cat .installData

    path=/var/folders/vr/mz4hsqqs0wlgj9sfcpn3wfn5g2lwk3/T/PackageOperation07

    PackageOperation0X is the temp folder chosen to download the zip file

    1. Copy downloaded android-ndk-r21d-darwin-x86_64.zip to this temp folder (PackageOperation0X)

    2. Copy ~/Library/Android/sdk/ndk-bundle folder to some other location

    3. Cancel the NDK download in SDK Manager

    4. cd ~/Library/Android/sdk/

    5. You may find ndk-bundle folder missing as download has been cancelled in the SDK Manager.

    6. Move the previously copied ndk-bundle to ~/Library/Android/sdk/

    7. Go to SDK manager, start downloading NDK again. Existing file will be scanned and installation will be started skipping the download step.

提交回复
热议问题