Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.1K
Visualizações
Caused by: java.lang.AssertionError: Could not delete caches dir yourProject\build\kotlin\compileDebugTestingKotlin

Sometimes this unexpected message appear and the only way to deal with this is to restart the pc and when it starts again go to the obove path and delete the file before start Android Studio with the project. It works for some time but latter appears again. Maybe someone of you know how deal better with this annoying issue.

CreateProcess error=206, El nombre del archivo o la extensión es demasiado largo
Caused by: java.lang.AssertionError: Could not delete caches dir YourProjectPath\build\kotlin\compileDebugTestingKotlin
over 4 years ago · Hanz Gallego
8 Respostas
Responde à pergunta

0

invalidating cache and restarting worked for me

over 4 years ago · Hanz Gallego Relatório

0

ext.kotlin_version = '1.4.10'

classpath 'com.android.tools.build:gradle:4.0.1'

distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip

update all version

over 4 years ago · Hanz Gallego Relatório

0

I'm using Android Studio version Arctic Fox 2020.3.1 and I got the same error. In order to fix it, we need to kill the process Java.exe

over 4 years ago · Hanz Gallego Relatório

0

In windows open task manager CTRL + ALT + DEL
You can see java.exe on the details page. End Task for all instances of Java.exe

enter image description here

over 4 years ago · Hanz Gallego Relatório

0

Updating project level build.gradle from:

classpath 'com.android.tools.build:gradle:4.1.1'

to:

classpath 'com.android.tools.build:gradle:4.2.1'

solved my issue. If it won't fix yours you can also try to update:

ext.kotlin_version = '1.4.32'

Hope this will work for you.

over 4 years ago · Hanz Gallego Relatório

0

Try reopening Android Studio and clean your project. Worked for my cache issue.

over 4 years ago · Hanz Gallego Relatório

0

In windows open task manager.

  • Go to details tab.
  • Look for Java.exe.
  • End Task for all instances of Java.exe.

This works perfectly for me.

over 4 years ago · Hanz Gallego Relatório

0

Notice: This happens with the newer AndroidStudio 4.2.x.

Temporary solution:

Delete (the contents of) the folder which is giving you the issue. For example:

..\app\build\kotlin\compileDebugKotlin\caches-jvm\inputs

If you get: "The file is open in OpenJDK Platform Binary" you'll need to stop these processes through Windows Task Manager > Details > Java.exe.

Please know that with this method the error will repeat again after several assembly attempts.

UPDATE:

Google hasn't provide us a fix, so you'll need to downgrade to an older version which works for you. 4.1.3 seems to be working fine.

over 4 years ago · Hanz Gallego Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda