react-native-pdf: Android: cannot find symbol .pageSnap(this.page Snap)

What react-native version are you using ? 0.53.0

What react-native-pdf version are you using ? 5.0.1

What platform dose 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

Task :react-native-device-info:compileReleaseJavaWithJavac Note: /Users/jingzhiwei/milo-mobile/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java uses or ove rrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :react-native-fetch-blob:compileReleaseJavaWithJavac Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :react-native-pdf:compileReleaseJavaWithJavac FAILED /Users/jingzhiwei/milo-mobile/node_modules/react-native-pdf/android/src/main/java/org/wonday/pdf/PdfView.java:186: error: cannot find symbol .pageSnap(this.pageSnap) ^ symbol: method pageSnap(boolean) location: class PDFView.Configurator 1 error

FAILURE: Build failed with an exception.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@witalobenicio

try

yarn cache clean
npm cache clean
rm yarn.lock
yarn