error: cannot find symbol import com.wonday.rnpdf.RNPDFPackage;
UNIDY2002 opened this issue · comments
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 :
- Steps to reproduce the issue or to explain in which case you get the issue
- Interesting
logs
error: cannot find symbol
import com.wonday.rnpdf.RNPDFPackage;
^
symbol: class RNPDFPackage
location: package com.wonday.rnpdf
Show us the code you are using?
+1
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?
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.
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
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
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 :)
i hope they fix it soon im stuck in the hole project for this issue
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.
@UNIDY2002 actually im already on the "react-native-pdf": "^6.7.1", and this issue happens while im building , thats so confusing
@Fares-sghaier Remove ^ sign and do npm install again
@malikzype thanks a lot man!
@Fares-sghaier Remove ^ sign and do npm install again
It works now with .. "react-native-pdf": "6.7.1", Thanks
Fixed at v6.7.3