Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fitprotracker opened this issue Apr 20, 2022 · 3 comments
Closed

Comments

@fitprotracker
Copy link

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

image

any thoughts?

@scottwilson312
Copy link

Same issue here, on a completely vanilla project

@scottwilson312
Copy link

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

@tafelnl
Copy link
Member

tafelnl commented Dec 18, 2022

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

@tafelnl tafelnl closed this as completed Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants