Skip to content

Build issue in react native with react-native-keyboard-controller latest version(1.17.5) #990

@Tarantula471

Description

@Tarantula471

Hey,

I just installed the package and tried to build my react native project , so it's throwing this error

`> Configure project :react-native-reanimated
Android gradle plugin: 8.8.2
Gradle: 8.13

Task :react-native-keyboard-controller:processDebugManifest
package="com.reactnativekeyboardcontroller" found in source AndroidManifest.xml: C:\Users\Tushar\Documents\cheri\node_modules\react-native-keyboard-controller\android\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativekeyboardcontroller" from the source AndroidManifest.xml: C:\Users\Tushar\Documents\cheri\node_modules\react-native-keyboard-controller\android\src\main\AndroidManifest.xml.

Task :app:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning in C:/Users/Tushar/Documents/cheri/node_modules/@react-native-vector-icons/material-design-icons/android/build/generated/source/codegen/jni/CMakeLists.txt
C/C++: The object file directory
C/C++: C:/Users/Tushar/Documents/cheri/android/app/.cxx/Debug/1w4u4n61/arm64-v8a/VectorIconsMaterialDesignIcons_autolinked_build/CMakeFiles/react_codegen_VectorIconsMaterialDesignIcons.dir/./
C/C++: has 184 characters. The maximum full path to an object file is 250
C/C++: characters (see CMAKE_OBJECT_PATH_MAX). Object file
C/C++: react/renderer/components/VectorIconsMaterialDesignIcons/VectorIconsMaterialDesignIconsJSI-generated.cpp.o
C/C++: cannot be safely placed under this directory. The build may not work
C/C++: correctly.
C/C++: CMake Warning in C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/jni/CMakeLists.txt:
C/C++: The object file directory
C/C++: C:/Users/Tushar/Documents/cheri/android/app/.cxx/Debug/1w4u4n61/arm64-v8a/reactnativekeyboardcontroller_autolinked_build/CMakeFiles/react_codegen_reactnativekeyboardcontroller.dir/./
C/C++: has 182 characters. The maximum full path to an object file is 250
C/C++: characters (see CMAKE_OBJECT_PATH_MAX). Object file
C/C++: C_/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/common/cpp/react/renderer/components/reactnativekeyboardcontroller/RNKCKeyboardControllerViewShadowNode.cpp.o
C/C++: cannot be safely placed under this directory. The build may not work
C/C++: correctly.

Task :app:buildCMakeDebug[arm64-v8a] FAILED
C/C++: ninja: error: Stat(reactnativekeyboardcontroller_autolinked_build/CMakeFiles/react_codegen_reactnativekeyboardcontroller.dir/C_/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/common/cpp/react/renderer/components/reactnativekeyboardcontroller/RNKCKeyboardControllerViewShadowNode.cpp.o): Filename longer than 260 characters

Task :react-native-keyboard-controller:compileDebugKotlin
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/extensions/EditText.kt:69:42 Unchecked cast of 'java.util.ArrayList<*>' to 'java.util.ArrayList<android.text.TextWatcher>'.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/interactive/KeyboardAnimationController.kt:89:16 'static fun getWindowInsetsController(p0: View): WindowInsetsControllerCompat?' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:3:8 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:61:7 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:63:9 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:65:9 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:67:9 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:69:9 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:71:9 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:73:9 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt:75:9 'class MapBuilder : Any' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/modules/StatusBarManagerCompatModuleImpl.kt:50:36 'var statusBarColor: Int' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/modules/StatusBarManagerCompatModuleImpl.kt:53:18 'var statusBarColor: Int' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/modules/StatusBarManagerCompatModuleImpl.kt:58:16 'var statusBarColor: Int' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/views/EdgeToEdgeReactViewGroup.kt:115:23 'fun replaceSystemWindowInsets(p0: Int, p1: Int, p2: Int, p3: Int): WindowInsetsCompat' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/views/EdgeToEdgeReactViewGroup.kt:116:25 'val systemWindowInsetLeft: Int' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/views/EdgeToEdgeReactViewGroup.kt:117:65 'val systemWindowInsetTop: Int' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/views/EdgeToEdgeReactViewGroup.kt:118:25 'val systemWindowInsetRight: Int' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/views/EdgeToEdgeReactViewGroup.kt:119:25 'val systemWindowInsetBottom: Int' is deprecated. Deprecated in Java.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/views/overlay/OverKeyboardViewGroup.kt:13:8 'object ReactFeatureFlags : Any' is deprecated. Use com.facebook.react.internal.featureflags.ReactNativeFeatureFlags instead.
w: file:///C:/Users/Tushar/Documents/cheri/node_modules/react-native-keyboard-controller/android/src/main/java/com/reactnativekeyboardcontroller/views/overlay/OverKeyboardViewGroup.kt:132:9 'object ReactFeatureFlags : Any' is deprecated. Use com.facebook.react.internal.featureflags.ReactNativeFeatureFlags instead.`

Smartphone (please complete the following information):

Desktop OS: Windows 11
Device: Android Redmi note 9 pro
OS: Android 12
RN version: 0.79.2
JS engine: [e.g. JSC, Hermes, v8]
Library version: 1.17.5

Could someone please suggest a fix for this.

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions