개발 관련/git
error: read error while indexing ./gradle/5.2.1/executionHistory
홍비
2021. 10. 13. 01:24
intelliJ에서 gradle로 프로젝트를 생성하고 github에 커밋하는 도중 다음과 같은 오류가 발생했다.
해석해보면 ./gradlew을 실행할 수 있는 권한이 없어서다.
그래서 다음과 같이 해결했다.
./gradlew clean build -x test
위 명령어를 해당 디렉터리 터미널에서 입력 후, chmod 명령어로 권한을 부여했다.
chmod +x ./gradlew
잘 해결된 것을 확인했다.
참고 :
https://stackoverflow.com/questions/17668265/gradlew-permission-denied
gradlew: Permission Denied
I am attempting to run gradlew from my command line, but am constantly facing the following error. Brendas-MacBook-Pro:appx_android brendalogy$ ./gradlew compileDebug --stacktrace -bash: ./gradlew:
stackoverflow.com