Open shahzaibali-code opened 4 years ago
add react- native.config.js file in root of your project and add these lines in it module.exports = { dependencies: { 'react-native-perspective-image-cropper': { platforms: { android: { packageImportPath: 'import fr.michaelvilleneuve.customcrop.RNCustomCropPackage;', } } } } };
it will resolve your issue but you will face some other issues in future š
@Ahmad5448 thanks bro
C:\Users\Home\Desktop\react native2\cropapp\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:19: error: cannot find symbol import org.opencv.RNCustomCropPackage; ^ symbol: class RNCustomCropPackage location: package org.opencv C:\Users\Home\Desktop\react native2\cropapp\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:69: error: cannot find symbol new RNCustomCropPackage(), ^ symbol: class RNCustomCropPackage location: class PackageList Note: C:\Users\Home\Desktop\react native2\cropapp\android\app\src\debug\java\com\cropapp\ReactNativeFlipper.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors
What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'.
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
please help them to solve it if i put import fr.michaelvilleneuve.customcrop.RNCustomCropPackage; in PackageList and after run project then auto change to import org.opencv.RNCustomCropPackage;