-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot find symbol import org.opencv.RNCustomCropPackage; #35
Comments
@hashimkhatri Did you found any solution? |
I've just found after following the install steps the import is not made correctly // react-native-perspective-image-cropper
import org.opencv.RNCustomCropPackage; But should be like this (I think): // react-native-perspective-image-cropper
import fr.michaelvilleneuve.customcrop.RNCustomCropPackage; Changing this on the file, resets automatically on next build command, so no clue how to ride off the error. 🤔 |
Every time you make a build action this file is regenerated and your changes are lost, i don't have idea how to change, patch or fix this behavior... |
SOLVEDThe main issue is that this library is outdated. @TakaKeiji found a solution. module.exports = {
dependencies: {
'react-native-perspective-image-cropper': {
platforms: {
android: {
packageImportPath: 'import fr.michaelvilleneuve.customcrop.RNCustomCropPackage;',
}
}
}
}
}; with this change now the imports and build are ok. Thanks again to @TakaKeiji More info: https://github.com/react-native-community/cli/blob/master/docs/platforms.md |
Error: symbol: class RNCustomCropPackage My React Configuration "react": "16.11.0", Did you find any solution ? @tarunpatel004 @hashimkhatri @clsource @Michaelvilleneuve |
@clsource Thank you so much <3 |
@clsource where react-native config.js file is located ?? |
https://github.com/facebook/react-native/blob/0.60-stable/react-native.config.js |
Warning: right file name is react-native.config.js, not react-native-config.js :-) |
Thanks |
react-native.config.js file works awesome but is there any way out to add this dynamically like whenever I download the project from my source control I want just only to run yarn and that add these configuration automatically to my node_modules like one here issue and also the react-native.config.js file |
Error:
cannot find symbol import org.opencv.RNCustomCropPackage;
after changing in MainApplication.java
import org.opencv.RNCustomCropPackage
to
import fr.michaelvilleneuve.customcrop.RNCustomCropPackage;
still same issue. :'( I lost my 7 days on research to reslove this issue
The text was updated successfully, but these errors were encountered: