I get the following error when immediately runing npx react-native run-android after install.
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:27: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal
private ReactViewBackgroundDrawable mReactViewBackground;
^
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:129: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types;
getReactViewBackground().setBorderColor(
^
required: int,Integer
found: int,int,int
reason: actual and formal argument lists differ in length
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:134: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types;
getReactViewBackground().setBorderColor(
^
required: int,Integer
found: int,int,int
reason: actual and formal argument lists differ in length
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:139: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types;
getReactViewBackground().setBorderColor(
^
required: int,Integer
found: int,int,int
reason: actual and formal argument lists differ in length
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:144: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types;
getReactViewBackground().setBorderColor(
^
required: int,Integer
found: int,int,int
reason: actual and formal argument lists differ in length
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:161: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal
getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topRight")), 1);
^
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:162: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal
getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("bottomRight")), 2);
^
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:163: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal
getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("bottomLeft")), 3);
^
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:164: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal
getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topLeft")), 0);
^
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:210: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal
private ReactViewBackgroundDrawable getReactViewBackground() {
^
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:212: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal
mReactViewBackground = new ReactViewBackgroundDrawable(view.getContext());
^
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:212: warning: [removal] ReactViewBackgroundDrawable(Context) in ReactViewBackgroundDrawable has been deprecated and marked for removal
mReactViewBackground = new ReactViewBackgroundDrawable(view.getContext());
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 errors
8 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-android-widget:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 1m 3s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:27: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal private ReactViewBackgroundDrawable mReactViewBackground; ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:129: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types; getReactViewBackground().setBorderColor( ^ required: int,Integer found: int,int,int reason: actual and formal argument lists differ in length C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:134: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types; getReactViewBackground().setBorderColor( ^ required: int,Integer found: int,int,int reason: actual and formal argument lists differ in length C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:139: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types; getReactViewBackground().setBorderColor( ^ required: int,Integer found: int,int,int reason: actual and formal argument lists differ in length C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:144: error: method setBorderColor in class CSSBackgroundDrawable cannot be applied to given types; getReactViewBackground().setBorderColor( ^ required: int,Integer found: int,int,int reason: actual and formal argument lists differ in length C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:161: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topRight")), 1); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:162: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("bottomRight")), 2); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:163: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("bottomLeft")), 3); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:164: warning: [removal] setRadius(float,int) in CSSBackgroundDrawable has been deprecated and marked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topLeft")), 0); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:210: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal private ReactViewBackgroundDrawable getReactViewBackground() { ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:212: warning: [rearked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topLeft")), 0); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:210: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal private ReactViewBackgroundDrawable getReactViewBackground() { ^ C:\Codinarked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topLeft")), 0); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:210: warning: [removal] ReactViewBackgroundDrawable inarked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topLeft")), 0); ^ C:\Coding\my-app\node_modules\react-native-andrarked for removal getReactViewBackground().setRadius(dpToPx(borderRadius.getDouble("topLeft")), 0); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:210: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal private ReactViewBackgroundDrawable getReactViewBackground() { ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:212: warning: [removal] ReactViewBackgroundDrawable in com.facebook.react.views.view has been deprecated and marked for removal mReactViewBackground = new ReactViewBackgroundDrawable(view.getContext()); ^ C:\Coding\my-app\node_modules\react-native-android-widget\android\src\main\java\com\reactnativeandroidwidget\builder\widget\BaseWidget.java:212: warning: [removal] ReactViewBackgroundDrawable(Context) in ReactViewBackgroundDrawable has been deprecated and marked for removal mReactViewBackground = new ReactViewBackgroundDrawable(view.getContext()); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 4 errors 8 warnings FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-android-widget:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: > Run with --info option to get more log output. > Run with --scan to get full insights. BUILD FAILED in 1m 3s.
info Run CLI with --verbose flag for more details.
Hi there! I saw your package looks feature-rich and maintained, so I thought I would try it out.
I am doing a fresh react-native install on Nov 4th 2024.
my package.json
I get the following error when immediately runing
npx react-native run-android
after install.