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

Adding the plugin class in the MainActivity #7

Open
BruceWayne-cpu opened this issue Jan 29, 2021 · 2 comments
Open

Adding the plugin class in the MainActivity #7

BruceWayne-cpu opened this issue Jan 29, 2021 · 2 comments

Comments

@BruceWayne-cpu
Copy link

BruceWayne-cpu commented Jan 29, 2021

Hi, what do you mean by "For android development, don't forget to add the plugin class in the MainActivity!"? it would be helpful if you include some examples. I'm getting an error about MainActivity.
Thank you

@theZaX
Copy link

theZaX commented Feb 3, 2021

I haven't tested this quite yet but I found that when you open you capacitor app in android studio and to to /java/io.ionic.starter there is a MainActivity file where it said "add plugins here" I assume you just add the line add(UdpPlugin.class); to the init function. Let me know if that works for you.

@BruceWayne-cpu
Copy link
Author

I can't find that file. I'm not using ionic actually, I'm using just capacitor and Vue.

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

2 participants