Comments (4)
"react-native": "0.67.5"
"react-native-pdf": "^6.7.2"
1 - Running project;
BUILD FAILED in 22s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
mymac/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:73: error: package undefined does not exist
import undefined.RNPDFPackage;
^
mymac/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:172: error: cannot find symbol
new RNPDFPackage(),
^
symbol: class RNPDFPackage
location: class PackageList
Note: mymac/android/app/src/debug/java/com/icoop/ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
![Screenshot 2024-01-23 at 10 15 42](https://private-user-images.githubusercontent.com/52721517/298952798-8bed10e6-c25c-4721-84b6-3c32f681e125.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDgzMDY1MjYsIm5iZiI6MTcwODMwNjIyNiwicGF0aCI6Ii81MjcyMTUxNy8yOTg5NTI3OTgtOGJlZDEwZTYtYzI1Yy00NzIxLTg0YjYtM2MzMmY2ODFlMTI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjE5VDAxMzAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiYjdkMTI5MjI4OGIwN2ZjZmRlYzhkZmRiMzkxMThkODZjYjI1NmE1NWJmZmM1NjhiOWQ3NGUwMGZmZjAyZjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ho9iIRrdlXgP9yocC0w8Gkpo34f_TTkcTwjDeY0cUtY)
![Screenshot 2024-01-23 at 10 23 06](https://private-user-images.githubusercontent.com/52721517/298955119-a44b8d40-0963-4096-afa4-309aced3d50c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDgzMDY1MjYsIm5iZiI6MTcwODMwNjIyNiwicGF0aCI6Ii81MjcyMTUxNy8yOTg5NTUxMTktYTQ0YjhkNDAtMDk2My00MDk2LWFmYTQtMzA5YWNlZDNkNTBjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjE5VDAxMzAyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyMzk2NGM4ODIyYTU2OTZmMzNlMTJkOTAyZDU4Njc2ODM2NGE0ZGVlNjg2MGM0NmRkYmMyNGVmYTg3MjAyNjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.M6ERinYOr9FJyvZZyKjyO29_lKkv9RlMTIDnuDIA98k)
from react-native-pdf.
hello
it works for me what i did:
- first i clean the previous build and remove the node_modules directory and install again.
- run the react-native link react-native-pdf
- now in build folder you will found import com.wonday.pdf.RNPDFPackage instead of import com.undefined.RNPDFPackage;
now it will work fine.
thanks
from react-native-pdf.
@Princejain21 Its not working for me
from react-native-pdf.
Related Issues (20)
- package name missing from androidManifest causes pod install error HOT 4
- PDF preview issue in Android & iOS HOT 6
- import undefined.RNPDFPackage error with 6.7.3 HOT 5
- crypto-js is no longer maintained HOT 1
- App Crash with this.lastRNBFTask.cancel is not a function HOT 33
- 6.7.4 build issue HOT 1
- Please add lazy load function with large pdf file HOT 1
- crypto-js 3.3.0 is vulnerable and please update to 4.2.0+ HOT 1
- Unable to load file from local file system HOT 1
- Unable to read online insecure PDF file HOT 3
- Double Tap on pdf Zoom disable Issue HOT 1
- Source file at path`xxxxxxxxxxxxxxxxxxxx.pdf.tmp` does not exist HOT 9
- iOS: 'yoga/style/Style.h' Not Found with New Architecture Enabled HOT 3
- Web platform fails to bundle when react-native-pdf component exists HOT 1
- FitPolicy does not work based on canvas width on iOS
- file not open
- Want To show every single page as in gridView for Selection purpose
- Android buld failed due to Caused by: org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':react-native-pdf:processDebugManifest' property 'packageOverride'. HOT 1
- Scroll bar indicator not visible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-pdf.