Null value in entry: otherFileOutputs = null. NDK does not have a "platforms" directory

When I run the program, I get a gradle build error:

Null in record: other file outputs = null

When I click on full output in console in gradle console I see this:

Executing tasks: [: app: assembleDebug] On-demand configuration is an incubation function. There is no "platforms" directory in the NDK. If you are using the NDK, make sure ndk.dir is installed in a valid NDK directory. It is currently installed in C: \ Users \ Mindu Laptop \ AppData \ Local \ Android \ sdk \ ndk-bundle. If you are not using the NDK, disable the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

I do not use NDK, but in mine local.properties

I have

#This file is automatically generated by Android Studio.  

#Do not modify this file -- YOUR CHANGES WILL BE ERASED!

# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Tue Apr 18 16:25:21 NPT 2017
sdk.dir=C\:\\Users\\Mindu Laptop\\AppData\\Local\\Android\\sdk  

      

Things I've tried:

  • Clear project / Restore project

  • Invalid cache and restart

Edited: Fixed. In my case it was due to a space in the sdk location

+3


source to share





All Articles