-
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; #33
Comments
@syedsadiqali did you find any solution? |
I find a jack its not a proper solution: in this variable ----> def generatedFileContentsTemplate (line no 8) you gonna see this {{ packageImports }} (line no 21) after this add import fr.michaelvilleneuve.customcrop.RNCustomCropPackage; and in this function ----> void generatePackagesFile(File outputDir, String generatedFileName, String generatedFileContentsTemplate) { (line no 121) replace this line ----> |
Same issue here, not sure how to fix it |
Hi, the package is not yet optimized for React Native's autolinking feature. A workaround is creating a file named "react-native.config.js" in the modules root folder with the following content:
|
Did that and the bad import was still being generated in Package.list. Do I need to do something else in order to make it work?. Seems like my react-native-config is being ignored. EDIT: Made it work, I had a typo and wrote react-native-config.js instead of react-native.config.js |
@syedsadiqali Did you solve this error ? Same issue here, not sure how to fix it |
@shahzaibali-code the solution worked for me, but is far from ideal. |
@shahzaibali-code sorry I'm not working on react native for a long time. |
@JaimePata there is 2 ways you can overcome that issue.
Currently, I used the option 2 because I have to modify the source code to fit my need. |
Still facing the issue. |
@Beeltec |
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/home/syed/projects/HeroMobileApp/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:30: error: cannot find symbol
import org.opencv.RNCustomCropPackage;
^
symbol: class RNCustomCropPackage
location: package org.opencv
/home/syed/projects/HeroMobileApp/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:88: error: cannot find symbol
new RNCustomCropPackage(),
^
symbol: class RNCustomCropPackage
location: class PackageList
2 errors
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileDebugJavaWithJavac'.
The text was updated successfully, but these errors were encountered: