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
android android-gradle android-ndk build.gradle gradle


source to share


No one has answered this question yet

Check out similar questions:

33
How to fix android studio 2.3 NDK error?
3
How to disable Android NDK build for some build option
1
Android standalone car "opencv.dir" not configured in local properties - Android Studio
1
Android gradle build Error: (65, 0) Gradle DSL method not found: 'compile ()'
1
BUILD FAILED error when trying to create FBReaderJ (https://github.com/geometer/FBReaderJ)
1
Compile Android NDK Project Error Using Gradle
1
Android Studio failed to execute NDK project with non-zero exit value 2
0
Failed to create unassigned apk file
0
Failed to create Android Studio project
0
NDK location not found



All Articles
Loading...
X
Show
Funny
Dev
Pics