I used this tool to generate a plugin, and cannot get any of the imports to be recognized on Android. Have tried gradle sync, downgrading gradle, clean/build, and invalidate caches/restart. No matter what I do, I see the following in my plugin class in Android Studio:
Here is the build.gradle file (generated via npm script):
Android Studio Arctic Fox | 2020.3.1 Patch 2
Build #AI-203.7717.56.2031.7678000, built on August 26, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 16
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
Update: this issue seems to have gone away by running npm i @capacitor/android in the plugin's root directory. Can this be added to the getting started documentation?
I used this tool to generate a plugin, and cannot get any of the imports to be recognized on Android. Have tried gradle sync, downgrading gradle, clean/build, and invalidate caches/restart. No matter what I do, I see the following in my plugin class in Android Studio:
Here is the build.gradle file (generated via npm script):
And here is my Android Studio info:
Android Studio Arctic Fox | 2020.3.1 Patch 2 Build #AI-203.7717.56.2031.7678000, built on August 26, 2021 Runtime version: 11.0.10+0-b96-7249189 amd64 VM: OpenJDK 64-Bit Server VM by Oracle Corporation Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 16 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: org.jetbrains.kotlin