My gradle sync always fails with this message on the stable android studio 3.5
This has been happening since the preview releases of versions of 3.5
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
The same project works on a parallel android studio. Sometimes I need to work on two instances in parallel, but I'm blocked on this error which mysteriously disappears if I quit Android Studio and restart the project. This happens on lucky days and on other days I am unable to start the project with the same error showing up repeatedly. What I mean by quit is simply exiting Android Studio and restarting it and opening my project using Import project (Gradle, Eclipse, etc.)
instead of Open existing Android Studio project
.
Edit 1: Unlike the duplicate NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN error, the accepted answer is not the solution or cause to my problem. Accepted answer is an easy way to work around it, but is only a temporary fix.
Edit 2: According to https://issuetracker.google.com/issues/140403764#comment14, this issue will be fixed in android 3.6 beta 1