Open AbdulBari5 opened 2 years ago
I had a similar problem. have you solved it yet?
Is this solved? Same here.
Hello, I am using gradle version 6.5.1 and react-native 0.64.3, The project is an expo bare flow project. Every time I try to build the app. This error comes: Please help me to resolve it.
Task :react-native-bluetooth-escpos-printer:compileDebugJavaWithJavac FAILED C:\Users\HP\Desktop\anitadelivery\anita-terminal\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\RNBluetoothManagerModule.java:13: error: cannot find symbol import android.support.v4.app.ActivityCompat; ^ symbol: class ActivityCompat location: package android.support.v4.app C:\Users\HP\Desktop\anitadelivery\anita-terminal\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\RNBluetoothManagerModule.java:14: error: package android.support.v4.content does not exist import android.support.v4.content.ContextCompat; ^
Go to
node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\RNBluetoothManagerModule.java
and Try replacing android.support.v4.app.ActivityCompat -> import androidx.core.app.ActivityCompat android.support.v4.content.ContextCompat -> import androidx.core.content.ContextCompat;
Hello, I am using gradle version 6.5.1 and react-native 0.64.3, The project is an expo bare flow project. Every time I try to build the app. This error comes: Please help me to resolve it.
Task :react-native-bluetooth-escpos-printer:compileDebugJavaWithJavac FAILED C:\Users\HP\Desktop\anitadelivery\anita-terminal\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\RNBluetoothManagerModule.java:13: error: cannot find symbol import android.support.v4.app.ActivityCompat; ^ symbol: class ActivityCompat location: package android.support.v4.app C:\Users\HP\Desktop\anitadelivery\anita-terminal\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\RNBluetoothManagerModule.java:14: error: package android.support.v4.content does not exist import android.support.v4.content.ContextCompat; ^
Go to
node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\RNBluetoothManagerModule.java
and Try replacing android.support.v4.app.ActivityCompat -> import androidx.core.app.ActivityCompat android.support.v4.content.ContextCompat -> import androidx.core.content.ContextCompat;
Greate job it work for me Thank you
Hello, I am using gradle version 6.5.1 and react-native 0.64.3, The project is an expo bare flow project. Every time I try to build the app. This error comes: Please help me to resolve it.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-bluetooth-escpos-printer:compileDebugJavaWithJavac'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 56s 374 actionable tasks: 3 executed, 371 up-to-date