Closed BrianJVarley closed 11 months ago
same error node_modules/react-native-haptic-feedback/android/src/main/java/com/mkuczera/RNReactNativeHapticFeedbackPackage.java:29: error: cannot find symbol final Map<String, ReactModuleInfo> moduleInfos = new HashMap<>();
"react-native-haptic-feedback": "^2.0.3"
"react": "18.2.0",
"react-native": "0.71.10",
@mkuczera, On stackoverflow @rajaasim found a fix for this bug with the following commit -> https://github.com/rajaasim/react-native-haptic-feedback/commit/efc35247f47c9cee6d4f1ca792838adefd37cd78, the import java.util.Map;
was missing in RNReactNativeHapticFeedbackPackage
. Could this be patched?
@BrianJVarley sure, will patch everything on this weekend
Hey @mkuczera there is a PR already open for review here --> https://github.com/mkuczera/react-native-haptic-feedback/pull/113
@mkuczera did you get a chance to solve this?
Fixed in Release 2.1.0 / 2.2.0 I deprecated the failure releases. Sorry for the issues.
Hey @mkuczera, I've just installed
"react-native-haptic-feedback": "2.1.0"
in a"react-native": "^0.72.3"
project. But running an android build -./gradlew assembleDebug
, results in this error below in the class RNReactNativeHapticFeedbackPackage on this line in the getReactModuleInfoProvider function.I notice one difference in your package source as it uses
gradle-7.0.2-bin
whereas my project usesgradle-8.0.1-all
. But I couldn't downgrade to7.0.2
since my project relies on newer gradle configuration.It seems like the compiler doesn't recognise the Map -
cannot find the symbol "Map" in the context of the code
Can you help in any way to resolve this build issue?
Or if version 2.1.0 is compatible with react-native@0.72.3?
Error log out from
./gradlew assembleDebug
command:I've added some details about my package.json dependencies, node and java versions below: