How to fix android studios 2.3 NDK bug?

后端 未结 11 575
感情败类
感情败类 2020-12-05 16:51

I\'m assuming it\'s a bug since I didn\'t have any problems until the new update. So I cant use the gradle console to debug my app because I have this warning -

11条回答
  •  悲&欢浪女
    2020-12-05 17:49

    This type of error statement are:-

    1. NDK is missing a "platforms" directory.
    2. How to set ANDROID_NDK_HOME so that Android Studio does not ask for ndk location?

    Solution:

    Open your build.gradle and here you are see two gradle path like: classpath 'com.android.tools.build:gradle:2.3.0' classpath 'com.android.tools.build:gradle:2.2.0'

    You can remove one of those classpath and keep only one Classpath.

    Clean the project gradlew clean

    This is working for me never require to set the ndk path or the ndk setting.

    Android Studio NDK 2.3 BUG

提交回复
热议问题