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

208
Visualizações
Override annotation required and not - Kotlin

Related to : Error: onActivityResult overrides nothing

I've tried Dhaval Patel's solution and get the report that it overrides nothing from my parser. Omitting the override annotation reports that it hides the super method and override is required. Is there an issue with my parser?

How the documentation says to implement the method (which won't compile) https://developer.android.com/training/basics/intents/result

How I only get a parser warning - overrides nothing, override redundant

override fun onActivityResult(requestCode:Int, resultCode:Int, data:Intent?) 

How I get a compile error - override annotation required:

fun onActivityResult(requestCode:Int, resultCode:Int, data:Intent?)
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Thanks to a clue from byxor, I checked my build.grade

My IDE (Android Studio) reported a version mismatch in it's Kotlin version and the documentation. I've upgraded to 1.3.11 and it's resolved the issue by recognizing the need for the override annotation.

over 4 years ago · Santiago Trujillo 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