Today I encountered the following error as I was building an Android app: Turns out, there’s an error in the related XML file, activity_main.xml! 😂 For other possible solutions, this StackOverflower answer may help: android: data binding error: cannot find symbol class
Kotlin
Cannot access ‘‘: it is private in ‘MoshiConverterFactory’ //Android Kotlin Dev Diary
I’m starting a new category on my blog — Dev Diary, to document some of the errors that I encounter and what I did to fix them. I’m doing this in hopes of helping developers (including my future self!) as they work with code (and to get more blog visits! LOL). It’s nice to save […]
Android Kotlin: ‘getter for position int’ is deprecated. deprecated in java
Today I encountered a deprecation warning as I’m coding the app: ‘getter for position int’ is deprecated. deprecated in java And I was like, whoa, this wasn’t deprecated a couple of months back when I last touched Android code… this is how long I’ve missed out! 😂😂😂 I haven’t touched any app code for a […]
Android Kotlin: “overrides nothing” error appears on instantiateItem() function of PagerAdapter
I just began learning Kotlin for work and one of the first errors I encountered is “overrides nothing” pointing at the overrides of the function instantiateItem() for my PagerAdapter The function/method signature was like this: override fun instantiateItem(parent: ViewGroup?, position: Int): Any { To fix the error, I simply removed the question mark from the […]