-
Notifications
You must be signed in to change notification settings - Fork 72
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
App Error JobIntentService #66
Comments
Here are steps to fix it -
// import android.support.v4.app.JobIntentService; (comment this line)
// import android.support.annotation.Nullable; public class BoundaryEventHeadlessTaskService extends HeadlessJsTaskService {
// import android.support.annotation.NonNull;
// import android.support.annotation.NonNull; |
@harshit-kishor2 work for me, but for every change in the node module dir ,its force to do the all procces again ... |
Hi Team
Getting below error in React native latest version(0.71.8)
Project Version details:
"react": "18.2.0",
"react-native": "0.71.8",
"react-native-boundary": "^1.1.1",
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\receivers\BoundaryEventBroadcastReceiver.java:6: error: cannot find symbol
import android.support.v4.app.JobIntentService;
^
symbol: class JobIntentService
location: package android.support.v4.app
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:7: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:8: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventHeadlessTaskService.java:5: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventJobIntentService.java:6: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventJobIntentService.java:7: error: cannot find symbol
import android.support.v4.app.JobIntentService;
^
symbol: class JobIntentService
location: package android.support.v4.app
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventJobIntentService.java:20: error: cannot find symbol
public class BoundaryEventJobIntentService extends JobIntentService {
^
symbol: class JobIntentService
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventHeadlessTaskService.java:12: error: cannot find symbol
@nullable
^
symbol: class Nullable
location: class BoundaryEventHeadlessTaskService
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventJobIntentService.java:30: error: cannot find symbol
protected void onHandleWork(@nonnull Intent intent) {
^
symbol: class NonNull
location: class BoundaryEventJobIntentService
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:60: error: cannot find symbol
public void onFailure(@nonnull Exception e) {
^
symbol: class NonNull
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:143: error: cannot find symbol
int permission = ActivityCompat.checkSelfPermission(getReactApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION);
^
symbol: variable ActivityCompat
location: class RNBoundaryModule
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:166: error: cannot find symbol
public void onFailure(@nonnull Exception e) {
^
symbol: class NonNull
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:175: error: cannot find symbol
int permission = ActivityCompat.checkSelfPermission(getReactApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION);
^
symbol: variable ActivityCompat
location: class RNBoundaryModule
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:200: error: cannot find symbol
public void onFailure(@nonnull Exception e) {
^
symbol: class NonNull
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:220: error: cannot find symbol
public void onFailure(@nonnull Exception e) {
^
symbol: class NonNull
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:228: error: cannot find symbol
ActivityCompat.requestPermissions(getReactApplicationContext().getCurrentActivity(),
^
symbol: variable ActivityCompat
location: class RNBoundaryModule
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\RNBoundaryModule.java:234: error: cannot find symbol
return ActivityCompat.checkSelfPermission(getReactApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION);
^
symbol: variable ActivityCompat
location: class RNBoundaryModule
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\receivers\BoundaryEventBroadcastReceiver.java:21: error: cannot find symbol
JobIntentService.enqueueWork(context, BoundaryEventJobIntentService.class, 0, intent);
^
symbol: variable JobIntentService
location: class BoundaryEventBroadcastReceiver
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventJobIntentService.java:29: error: method does not override or implement a method from a supertype
@OverRide
^
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventJobIntentService.java:46: error: cannot find symbol
sendEvent(this.getApplicationContext(), ON_ENTER, enteredGeofences);
^
symbol: method getApplicationContext()
D:\MySamples\RNGeofenceTesting\node_modules\react-native-boundary\android\src\main\java\com\eddieowens\services\BoundaryEventJobIntentService.java:54: error: cannot find symbol
sendEvent(this.getApplicationContext(), ON_EXIT, exitingGeofences);
^
symbol: method getApplicationContext()
21 errors
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Execution failed for task ':react-native-boundary:compileDebugJavaWithJavac'.
2: Task failed with an exception.
What went wrong:
java.lang.StackOverflowError (no error message)
Try:
BUILD FAILED in 1m 21s
info Run CLI with --verbose flag for more details.
The text was updated successfully, but these errors were encountered: