"Unable to find plugin" error when deployed on Android #3743
-
I'm working on an Android app that uses the Geolocation Capacitor plugin. It functioned perfectly on my test device when plugged up to Android Studio, but once I actually deploy the app bundle or APK to the device, I suddenly get the error "unable to find plugin," and the plugin doesn't load or function at all. I've also just noticed this error that occurs when I open the app. Not sure if it is relevant.
I have deployed the app through the Play store, as well as by manually installing the APK on my device. Both of these methods produced the same results. The location function still works when ran from Android Studio, however. The android geolocation permission is configured.
The slider to activate location permissions is available in the device's settings, though an in-app prompt to allow it is never triggered since the plugin isn't working. I can't find any information about this issue, so I've come here for help. If any more info is needed, I'll be happy to share anything that would be useful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Have you changed the minifyEnabled value to true for release builds? |
Beta Was this translation helpful? Give feedback.
-
Setting minifyEnabled to false in build.gradle file solves plugins not found issues: |
Beta Was this translation helpful? Give feedback.
Have you changed the minifyEnabled value to true for release builds?
That prevents plugins from working