capacitor-community / native-market

MIT License
25 stars 16 forks source link

Cannot build Cap3 project when this plugin is installed #14

Closed kozakhs closed 1 year ago

kozakhs commented 2 years ago

Describe the bug When this command is executed ionic capacitor run android --livereload --external --livereload-url=http://192.168.2.147:8100

it results in this error:

...
NativeMarket.java:21: error: cannot access androidx.appcompat.app.AppCompatActivity
[capacitor]         Context context = this.bridge.getActivity().getApplicationContext();
[capacitor]         ^
[capacitor]         class file for androidx.appcompat.app.AppCompatActivity not found
....

To Reproduce 1) Install latest version of capacitor3 via npm 2) Install this plugin via npm install @capacitor-community/native-market 3) Run ionic cap sync 4) Try to run the app (on external device)

Expected behavior Run the app.

Desktop (please complete the following information):

Smartphone (please complete the following information):

kozakhs commented 2 years ago

Any response please?

hermitdemschoenenleben commented 2 years ago

this fork works for me with capacitor 3: https://github.com/hermitdemschoenenleben/native-market

riderx commented 2 years ago

@hermitdemschoenenleben can you publish it on npm ?

vaguilarrebolledo commented 2 years ago

i have same problem

imagen

riderx commented 1 year ago

if you need i published it with capacitor 3 https://www.npmjs.com/package/@capgo/native-market

jcesarmobile commented 1 year ago

I've released 4.0.0 with Capacitor 4 support, it should have fixed this issue. Also 5.0.0 with Capacitor 5 support. If the problem is still present, please, create a new issue and provide a sample app that reproduces the issue

There won't be a release with Capacitor 3 support.