capacitor-community / file-opener

Capacitor File Opener. The plugin is able to open a file given the mimeType and the file uri. This plugin is similar to cordova-plugin-file-opener2 without installation support.
MIT License
67 stars 13 forks source link

Cannot build app because ' android.content.Context;' does not exists #33

Closed razorback21 closed 1 year ago

razorback21 commented 1 year ago

Describe the bug Building failed on the app on capacitor 3.

To Reproduce

  1. Install the latest version of the plugin which is 1.0.4.
  2. Build the project on android studio
  3. Build failed because of this error 'package android.content does not exist import android.content.Context;'

image

razorback21 commented 1 year ago

I have resolved this issue myself by using an updated version of the Gradle. See screenshot below.

image