You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found issues with the package using an Expo development built project. The iOS version works fine (with the addition of the podfile changes as per documentation, but Android is failing to build with the below error.
Looking at the ReactNative lib, it looks like
/Users/user/Development/PdfDemo/android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:14: error: cannot find symbol import com.compdfkitpdf.CompdfkitPdfPackage; ^ symbol: class CompdfkitPdfPackage location: package com.compdfkitpdf /Users/user/Development/PdfDemo/android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:72: error: cannot find symbol new CompdfkitPdfPackage(), ^ symbol: class CompdfkitPdfPackage location: class PackageList 2 errors
I was able to get it all working but had to alter the namespace of the Java files to be "com.compdfkitpdf" instead of "com.compdfkitpdf.reactnative"
The text was updated successfully, but these errors were encountered:
Hi @ddolheguy , sorry for the late reply, we are very grateful for your feedback.
The CompdfkitPdfPackage.java file is located under the com.compdfkitpdf.reactnative directory. Once you add the @compdfkit_pdf_sdk/react_native plugin to your project, you do not need to manually reference CompdfkitPdfPackage.java. The plugin will be automatically integrated into your project.
We recommend the following steps:
Clean and Rebuild the Project
Open the Android part of your React Native project in Android Studio. In the android directory, go to Build > Clean Project to clear the cache, then select Build > Rebuild Project to rebuild the project.
Reinstall the Plugin
First, remove the plugin and then reinstall it using the following commands:
yarn remove @compdfkit_pdf_sdk/react_native
yarn add @compdfkit_pdf_sdk/react_native
Thank you for your support of our products
If you have other problems, please do not hesitate to contact us, thanks again.
I found issues with the package using an Expo development built project. The iOS version works fine (with the addition of the podfile changes as per documentation, but Android is failing to build with the below error.
Looking at the ReactNative lib, it looks like
/Users/user/Development/PdfDemo/android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:14: error: cannot find symbol import com.compdfkitpdf.CompdfkitPdfPackage; ^ symbol: class CompdfkitPdfPackage location: package com.compdfkitpdf /Users/user/Development/PdfDemo/android/app/build/generated/autolinking/src/main/java/com/facebook/react/PackageList.java:72: error: cannot find symbol new CompdfkitPdfPackage(), ^ symbol: class CompdfkitPdfPackage location: class PackageList 2 errors
I was able to get it all working but had to alter the namespace of the Java files to be "com.compdfkitpdf" instead of "com.compdfkitpdf.reactnative"
The text was updated successfully, but these errors were encountered: