Android studio build error #4400
-
I am new to capacitorjs. Trying out to build a custom plugin for an ionic angular app. The app can run on Android. Then, I follow the instructions in https://capacitorjs.com/docs/v3/android/custom-code, added a new class EchoPlugin.java. When compile, it says
I added a line to register EchoPlugin.class in MainActivity right after super.onCreate() but it says versions for your reference: I guess I missed some steps. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Try answer my question.
|
Beta Was this translation helpful? Give feedback.
Try answer my question.
I didn't aware there is a small v2/v3 icon right next to the "capacitor doc". When I switch it to v2, and follow the code, it can compile and run.