YanYuanFE / react-native-signature-canvas

:black_nib: React Native Signature Component based WebView Canvas for Android && IOS && expo
MIT License
417 stars 149 forks source link

react-native-webview dependency issue #315

Closed santo4ul closed 1 year ago

santo4ul commented 1 year ago

Hi, Thanks for the wonderful package.

Our application uses react-native-webview and our package.json we have react-native-webview 12.0.0 has the following,

"react-native-webview": "^12.0.0", After we integrated react-native-signature-canvas, we get the below error

/home/myapp/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewFileProvider.java:13: error: constructor FileProvider in class FileProvider cannot be applied to given types;
    super(R.xml.file_provider_paths);
    ^
  required: no arguments
  found: int
  reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-webview:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 16s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.

Could someone help on how to fix this issue? Am I missing something?

santo4ul commented 1 year ago

The problem is with the latest react-native-webview version 12.2.0. We reverted back to 12.1.0 and it worked.