Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unable to find symbol #32

Closed
alveshelio opened this issue Sep 30, 2019 · 2 comments
Closed

Error: Unable to find symbol #32

alveshelio opened this issue Sep 30, 2019 · 2 comments

Comments

@alveshelio
Copy link

Hi,

Before everything, I'd like to thank you for the effort you've put in building this module.

Also, I've already read the previous issue with this same error but I don't see a solution to my problem since from what the other user said, Instead of using RNImmediatePhoneCallModule he used RNImmediatePhoneCallPackage, however I've followed the readme and it says to use RNImmediatePhoneCallPackage.

I've double checked the installation process and I have everything similar with your readme.

This is the error I'm getting

../MainActivity.java:45: error: cannot find symbol
          RNImmediatePhoneCallPackage.onRequestPermissionsResult(requestCode, permissions, grantResults); // very important event callback
                                     
  symbol:   method onRequestPermissionsResult(int,String[],int[])
  location: class RNImmediatePhoneCallPackage
Note: .../MainApplication.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

I'm using react-native 0.59.10

Am I missing something? How could I solve this issue?

Thank you

@alveshelio
Copy link
Author

I just found the issue. You've actually committed changes on January on GitHub but you've actually never published the package on NPM so your last changes are not available on NPM. The work around was to change the package.json file and replace the version with the pack to the last commit on GitHub like so "react-native-immediate-phone-call": "wumke/react-native-immediate-phone-call#97066b8ab95e6118b1bcd40bf70a4e8146f47150",

Do you think you can publish this on NPM?

Thanks

@wumke
Copy link
Owner

wumke commented Apr 4, 2022

See #30

@wumke wumke closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants