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: cannot find symbol import com.wonday.rnpdf.RNPDFPackage; #786

Closed
UNIDY2002 opened this issue Nov 20, 2023 · 14 comments
Closed

error: cannot find symbol import com.wonday.rnpdf.RNPDFPackage; #786

UNIDY2002 opened this issue Nov 20, 2023 · 14 comments

Comments

@UNIDY2002
Copy link

What react-native version are you using?

0.72.7

What react-native-pdf version are you using?

6.7.2

What platform does your issue occur on? (android/ios/both)

android

Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue
  2. Interesting logs

See: https://github.com/thu-info-community/thu-info-app/actions/runs/6921186685/job/18826513634?pr=503#step:8:1763

error: cannot find symbol
import com.wonday.rnpdf.RNPDFPackage;
                       ^
  symbol:   class RNPDFPackage
  location: package com.wonday.rnpdf

Show us the code you are using?

https://github.com/thu-info-community/thu-info-app/tree/renovate/react-native-pdf-6.x/apps/thu-info-app

@malikzype
Copy link

+1

@alex2bc
Copy link
Contributor

alex2bc commented Nov 20, 2023

Looks like #784 introduced the issue for RN <73

Hey @felipecsl, could you please take a look at what is causing the library to fail during the build process? Is it change package org.wonday.pdf to com.wonday.rnpdf? Or we should leave package as suggested here?

@UNIDY2002
Copy link
Author

FYI, react-native-blob-util encountered a similar issue RonRadtke/react-native-blob-util#315, and was fixed by RonRadtke/react-native-blob-util#316.

Therefore, I made a similar PR #785 in this repo to solve this issue.

@habibrayhan007
Copy link

It Still Showing this error to me

What react-native version are you using?

0.72.3

What react-native-pdf version are you using?

6.7.2

What platform does your issue occur on? (android/ios/both)

android

Here is the screenshot of my command terminal that gives me error: https://ibb.co/KjL4Wcn

@Fares-sghaier
Copy link

i had the same issue today , anyone have a solution for this please

import com.wonday.rnpdf.RNPDFPackage;

                   ^

symbol: class RNPDFPackage

location: package com.wonday.rnpdf

@wleivam
Copy link

wleivam commented Nov 20, 2023

@Fares-sghaier

#785

@hellogbg
Copy link

hellogbg commented Nov 20, 2023

same problem here. I am on:
"react-native": "0.72.6",
"react-native-pdf": "^6.7.2",

It worked for me when I downgraded to 6.7.1 but that is a quickfix :)

@Fares-sghaier
Copy link

i hope they fix it soon im stuck in the hole project for this issue

@UNIDY2002
Copy link
Author

i hope they fix it soon im stuck in the hole project for this issue

Well, you can stay on v6.7.1 for the time being if you are stuck. I believe that a hot-fix will be out soon.

@Fares-sghaier
Copy link

@UNIDY2002 actually im already on the "react-native-pdf": "^6.7.1", and this issue happens while im building , thats so confusing

@malikzype
Copy link

@Fares-sghaier Remove ^ sign and do npm install again

@Fares-sghaier
Copy link

@malikzype thanks a lot man!

@Bhaupatil1988
Copy link

@Fares-sghaier Remove ^ sign and do npm install again

It works now with .. "react-native-pdf": "6.7.1", Thanks

@wonday
Copy link
Owner

wonday commented Nov 20, 2023

Fixed at v6.7.3

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

Successfully merging a pull request may close this issue.

9 participants