Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!