[message]

Gradle 'Project Name' project refresh failed

Error:Timeout waiting to lock buildscript class cache for build file 

...

It is currently in use by another Gradle instance.

Owner PID: *

Our PID: *

Owner Operation: *

Our operation: Initialize cache

Lock file: 

C:\ ... \.gradle\caches\ ... \ProjectScript\buildscript\cache.properties.lock


[environment]

android studio


[solution]

1. go to the folder & delete file - cache.properties.lock


if you can't delete for java then 

2. close android studio


3. retry 1.


[message]

Error:(23, 23) error: package org.apache.http does not exist


Error:(59, 35) error: cannot find symbol variable HttpStatus

where T is a type-variable:

T extends Object declared in class



[why]

compileSdkVersion : 23 ~



[solved]

app> build.gradle


android {

useLibrary  'org.apache.http.legacy' //insert this line

}


+ Recent posts