Gradle sync failed, NDK not configured, download it with SDK manager

前端 未结 11 2816
难免孤独
难免孤独 2020-12-24 01:25

I am completely new to Android development and just installed Android Studio. I\'m doing a very basic HelloGL2 exercise, and I opened up the HelloGL2.iml file. I tried runni

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-24 01:53

    For Linux:
    Create file local.properties:

    ndk.dir=/home/username/Android/Sdk/ndk/21.3.6528147
    

    Now close the project and import it again.

提交回复
热议问题