해결방법

1. Android Studio 종료.

2. '.idea' 디렉토리 삭제.

3. '.gradle' 디렉토리 삭제.

4. '.iml' 파일 모두 삭제.

5. Android Studio 실행 -> Build/Rebuild Projects && Build/ Clean Projects 실행.

터미널 명령어

1
2
3
4
5
6
// close Android Studio
cd 프로젝트 경로
rm -rf ./.idea
rm -rf ./.gradle
find . | grep -e .iml$ | xargs rm
// use Android Studio to re-open the directory as a project
cs

 

참고 : https://stackoverflow.com/questions/37583875/org-gradle-api-tasks-taskexecutionexception-execution-failed-for-task-apptra

+ Recent posts