Open belafdil opened 2 years ago
I'm not sure, but you might try adding maven { url 'https://www.jitpack.io' }
in android/build.gradle
under allprojects
-> repositories
. Like we have here
Hey @roryabraham a tried your solution and this https://github.com/wonday/react-native-pdf/issues/530#issuecomment-756931303 but no success.
Do you have any other ideas of what it could be?
any update ?
Try this I think the problem because this
https://github.com/wonday/react-native-pdf#android-installation
I had the same issues, downgrading the version working fine for me
yarn add react-native-pdf@6.6.2
and added android/app/build.gradle android{ packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libjsc.so' pickFirst 'lib/arm64-v8a/libjsc.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' } }
Can confirm @ils-anwarshah suggestion has fixed it for me.
hello friends when i try to install react-native-pdf i got this error
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings 10 actionable tasks: 2 executed, 8 up-to-date
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 5s
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.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 5s
info Run CLI with --verbose flag for more details.