mapbox / mapbox-navigation-android-examples

Other
53 stars 46 forks source link

No .git directory found! #105

Open ndeso17 opened 2 years ago

ndeso17 commented 2 years ago

Error build gradle : Caused by: java.lang.IllegalStateException: No .git directory found! In script-git-version.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.ajoberstar.grgit:grgit-core:4.1.1'
    }
}

import org.ajoberstar.grgit.Grgit

ext {
    git = Grgit.open(currentDir: projectDir)
    gitCommitHash = git.head().abbreviatedId
    gitNumberOfCommits = git.log().size()
    gitTagDescription = git.describe(tags: true)
    git.close()
}
LukasPaczos commented 2 years ago

Hey @ndeso17! Did you check out the git repository correctly?