---
title: "Comment by Ouya Obunga on \"Building a Contact List App on Android: A step-by-step Guide\" | Hashnode"
description: "Hi. Thanks for the insightful tutorial. I'm getting this error on MainActivity2.java file line 18. Kindly assist, I'm new to Android development. error: cannot"
url: "https://hashnode.com/posts/building-a-contact-list-app-on-android-a-step-by-step-guide/65e32d3619e69a0cd7eb2efc/comment/6937c6feef8c30d4cb96585f"
---

[Discussion](https://hashnode.com/posts/building-a-contact-list-app-on-android-a-step-by-step-guide/65e32d3619e69a0cd7eb2efc)

Comment [Building a Contact List App on Android: A step-by-step Guide](https://hashnode.com/posts/building-a-contact-list-app-on-android-a-step-by-step-guide/65e32d3619e69a0cd7eb2efc)

[Ouya Obunga](https://hashnode.com/@obunga)

[Dec 9, 2025](https://hashnode.com/posts/building-a-contact-list-app-on-android-a-step-by-step-guide/65e32d3619e69a0cd7eb2efc/comment/6937c6feef8c30d4cb96585f)

Hi. Thanks for the insightful tutorial. I'm getting this error on MainActivity2.java file line 18. Kindly assist, I'm new to Android development.

error: cannot find symbol ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> { ^ symbol: variable main location: class id
