Error: One of setGit or setWorkTree must be called

when I was running the application that I got in the repo that I had zipped, I found an error like an error like the one shown below ... did you ever get an error like this! ?? in this tutorial I will fix an error like this, check it out!


this kind of error is the problem with git on your android studio

Error: One of setGit or setWorkTree must be called













command in part
//import org.ajoberstar.grgit.Grgit

and this :

//    git = Grgit.open(currentDir: projectDir)
//    gitVersionName = git.describe()
//    gitVersionCode = git.tag.list().size() + 6
//    gitVersionCodeTime = git.head().time

then clean and rebuild..

Berlangganan Untuk Menerima Update Terbaru:

0 Response to "Error: One of setGit or setWorkTree must be called"

Post a Comment