npx expo run:android
: Could not find com.pdftron:pdftron:10.8.0npx react-native run-android
: 'compileDebugJavaWithJavac' task (current target is 17) and 'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
my assumption is that both errors are caused by the same issue, which is that the pdftron library is not being included in the android build.
This sample project uses Expo and shows how to create a PDF viewer app for both web and mobile with a single codebase between React and React Native.
git clone https://github.com/PDFTron/pdftron-react-and-react-native-sample.git
cd pdftron-react-and-react-native-sample
npm install
npm run web
- Install dependencies
cd ios
pod install
cd ..
npm run ios
- Create a
local.properties
file inside theandroid
folder with your Android SDK location, for example:
ndk.dir=/Users/pdftron/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/pdftron/Library/Android/sdk
npm run android
- https://www.pdftron.com/documentation/web
- https://www.pdftron.com/documentation/ios
- https://www.pdftron.com/documentation/android
See contributing.
See license.