java.lang.NullPointerException CmakeUtils.getVersionString(

**Hi all, **

I created a project Android with Native C++ with this guilde

But i have a problem with the gradle fail error

  • Exception is:
    org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ‘:app’.
    at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(
    at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(
    at org.gradle.configuration.project.LifecycleProjectEvaluator.access$400(
    at org.gradle.configuration.project.LifecycleProjectEvaluator$
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(

    Caused by: java.lang.NullPointerException

Could you have any suggest for fix it ?

Thank you so much

As that is a NullPointerException within the Android Gradle plugin, you should probably better report it to the Android Gradle plugin bug tracker, or search whether an entry already exists and maybe also gives a work-around.

But from a very short look at those source I’d say that it runs cmake --version and does not get any output from that for whatever reason. It should be more robust than to throw an NPE though.