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

852
Visualizações
Unable to launch Kotlin REPL: CommandLineWrapper is ill-suited for launching apps

I'm trying to use the Kotlin REPL within Android Studio.
However, when I open it, I get the following output:

"E:\Program Files\Android\Arctic Fox\android-studio\jre\bin\java.exe" -Dkotlin.repl.ideMode=true -Dfile.encoding=UTF-8 -classpath "E:\Program Files\Android\Arctic Fox\android-studio\lib\idea_rt.jar;C:\Users\me\AppData\Local\Temp\classpath901685403.jar" com.intellij.rt.execution.CommandLineWrapper C:\Users\me\AppData\Local\Temp\classpath901685403.jar org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
`CommandLineWrapper` is ill-suited for launching apps on Java 9+.
If the run configuration uses "classpath file", please change it to "@argfile".
Otherwise, please contact support.

Process finished with exit code 1

The closest solution I've been able to find is this one:
Test framework quit unexpectedly - ClassNotFound Exception
which suggests changing a value in the run configuration, however there doesn't seem to be a run configuration avalible for the REPL.

There is one for "Java Scratch", however changing this does not solve the issue.

I'm using the Arctic Fox Beta (2020.3.1 Beta 5), with version 203-1.5.20-release-289-AS7717.8 of the Kotlin plugin.

over 4 years ago · Hanz Gallego
3 Respostas
Responde à pergunta

0

I have the same error but eventually fixed it by invalidate caches / restart. Btw I'm using Android Studio Arctic Fox | 2020.3.1 RC 1 and Kotlin plugin version 203-1.5.20-release-289-AS7717.8

over 4 years ago · Hanz Gallego Relatório

0

Keeping the REPL window displaying the above error, again select Tools > Kotlin > Kotlin REPL

A choice is displayed with two items (Project) (Project).app

Select the first option with the name of your project and the REPL starts working.

error message

option after selecting Kotlin REPL again

correctly running REPL

over 4 years ago · Hanz Gallego Relatório

0

I changed Run > Edit Configurations... > Templates > Java Scratch > Shorten command line to @argfile (Java 9+) and it fixes the issue.

Android Studio Arctic Fox | 2020.3.1 Build #AI-203.7717.56.2031.7583922, built on July 26, 2021 Runtime version: 11.0.10+0-b96-7249189 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

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