Android 스튜디오 컴 파일 오류: 작업 수행 실패 ': app: clean'

1281 단어 android
1. 문제 설명:
Execution failed for task ':app:clean'.
> Unable to delete file: C:\Users\User\KotlinGameEngine\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1\jars\classes.jar

2. 해결 방안:
build. gradle 파일 에 다음 내용 추가 하기;app: clean 에서 잠 금 을 풀 고 컴 파일 된 파일 을 강제로 삭제 하 는 역할 을 합 니 다.
task clean(type: Exec) {
    ext.lockhunter = '\"C:\\LockHunter.exe\"'
    def buildDir = file(new File("build"))
    commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir
}

좋은 웹페이지 즐겨찾기