ajoberstar / gradle-git

Git plugin for Gradle
Apache License 2.0
561 stars 89 forks source link

error in AppAuth-Android-master\config (Access is denied) #248

Closed evrajo12 closed 7 years ago

evrajo12 commented 7 years ago

Hi, I'm trying out the Appauth application, and there is a build error which says Error:(26, 0) D:\workspace\Authentication-Oauth2\AppAuth-Android-master-0.5.1\AppAuth-Android-master\config (Access is denied)

The error is located in the project build.gradle file at line: def grgit = org.ajoberstar.grgit.Grgit.open(dir: '.')

I've attached a screenshot to show the error , and the buiid.gradle file . error-appauth build.gradle.txt

Any help in resolving this issue will be appreciated. Jrag.

ajoberstar commented 7 years ago

Hard to say what that could be, though I don't think it's likely a gradle-git or grgit issue. I'm not familiar with how Android Studio handles this stuff, so I don't know if it's an interaction there that's the problem.

It's possible it's not trying to open the right directory (Gradle doesn't guarantee that the project directory is the same as the JVM's working directory). You could try changing it to .open(dir: projectDir) instead of the '.'.

Other than that, I would assume some locking issue between some of the other code in your build.

ajoberstar commented 7 years ago

Feel free to reopen if you have further questions.