capacitor-community / native-audio

MIT License
109 stars 66 forks source link

Can't register plugin in `MainActivity.java` #4

Closed kheftel closed 4 years ago

kheftel commented 4 years ago

Describe the bug Docs describing registering plugin still mention FirebaseCrashlytics. I try to register plugin class with import com.getcapacitor.community.audio.NativeAudio.class; but package community doesn't exist.

To Reproduce Steps to reproduce the behavior:

  1. npm install @capacitor-community/native-audio
  2. npx cap sync
  3. npx cap open android
  4. Android Studio can't find the plugin class to import

Expected behavior Android Studio should find the plugin class.

Screenshots capacitor.settings.gradle appears to reference the npm package properly image

Did I get the package/class wrong for import? image

Desktop (please complete the following information):

kheftel commented 4 years ago

After online research (including this and this) I was about to uninstall Android Studio, but, either a manual or automatic gradle sync happened and it finds the class now.

Not sure what changed but I'm closing this.

leafiy commented 3 years ago

I still have this problem, and I've done reinstall Android studio and Gradle Sync

image