capacitor-community / contacts

Contacts Plugin for Capacitor
https://capacitor-community.github.io/contacts/
119 stars 52 forks source link

Ionic capacitor 3 project getting cannot resolve ch in mainactivity #70

Closed fitprotracker closed 1 year ago

fitprotracker commented 2 years ago

Walking through the example and getting the error in the mainactivity.java file.

image

any thoughts?

scottwilson312 commented 2 years ago

Same issue here, on a completely vanilla project

scottwilson312 commented 2 years ago

I upgraded my gradle inside android studio from 4.x to 7.x and now all is well

tafelnl commented 1 year ago

This is a common error, that is caused by forgetting to run npx cap sync and/or forgetting to run Gradle sync. I am happy you were able to resolve the issue in the end. I have added it to the documentation as well: https://capacitor-community.github.io/contacts/#/guide-troubleshooting