I encounter this error after running the second time the project.
...\app\build\intermediates\compile_and_runtime_not_namespaced_r_class_jar\debug\R.jar: The process cannot access the file because it is being used by another process
So far Clean project works once, restart the Android Studio works once and the last resort is to restart the pc(running windows 10).
Open to suggestions!