Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo Bare Workflow TaskManager - Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference #7949

Closed
justin-lu054 opened this issue Apr 21, 2020 · 6 comments

Comments

@justin-lu054
Copy link

馃悰 Bug Report

Environment

Expo CLI 3.15.4 environment info:
System:
OS: Windows 10 10.0.17763
Binaries:
Node: 13.11.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.7 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312
npmPackages:
expo: ~36.0.0 => 36.0.2
react: ~16.9.0 => 16.9.0
react-native: ~0.61.4 => 0.61.5

I am running on android via react-native run-android

Steps to Reproduce

Run react-native run-android on a bare workflow expo project that utilizes the TaskManager module.

Actual Behavior

Java Runtime Error (See below)
image

Reproducible Demo

The source of this error is in TaskManagerInternalModule.java.

private boolean isRunningInHeadlessMode() {
    return mTaskService.isStartedByHeadlessLoader(getAppId());
  }
@DmitryKvant
Copy link

DmitryKvant commented May 6, 2020

Some news? I have same issue

Build failed

/Users/dmitrykvant/Projects/handymanApp/node_modules/expo-task-manager/android/src/main/java/expo/modules/taskManager/TaskManagerInternalModule.java:157: error: isRunningInHeadlessMode() in TaskManagerInternalModule cannot implement isRunningInHeadlessMode() in TaskManagerInterface private boolean isRunningInHeadlessMode() { ^ attempting to assign weaker access privileges; was public /Users/dmitrykvant/Projects/handymanApp/node_modules/expo-task-manager/android/src/main/java/expo/modules/taskManager/TaskManagerInternalModule.java:85: error: cannot find symbol mEventEmitter.emit(TaskManagerInterface.EVENT_NAME, body); ^ symbol: variable EVENT_NAME location: interface TaskManagerInterface /Users/dmitrykvant/Projects/handymanApp/node_modules/expo-task-manager/android/src/main/java/expo/modules/taskManager/TaskManagerInternalModule.java:102: error: cannot find symbol mEventEmitter.emit(TaskManagerInterface.EVENT_NAME, body); ^ symbol: variable EVENT_NAME location: interface TaskManagerInterface /Users/dmitrykvant/Projects/handymanApp/node_modules/expo-task-manager/android/src/main/java/expo/modules/taskManager/TaskManagerInternalModule.java:158: error: cannot find symbol return mTaskService.isStartedByHeadlessLoader(getAppId()); ^ symbol: method isStartedByHeadlessLoader(String) location: variable mTaskService of type TaskServiceInterface

@DmitryKvant
Copy link

And I get more this
Cannot load settings from file '/Users/dmitrykvant/Projects/handymanApp/node_modules/unimodules-task-manager-interface/android/unimodules-task-manager-interface.iml': File /Users/dmitrykvant/Projects/handymanApp/node_modules/unimodules-task-manager-interface/android/unimodules-task-manager-interface.iml does not exist Please correct the file content

@DmitryKvant
Copy link

It must be connected

@DmitryKvant
Copy link

DmitryKvant commented May 6, 2020

Update unimodules-task-manager-interface to v5.1.0 it fix it build failed, but not in start

Expo CLI 3.20.1 environment info:
System:
OS: macOS 10.15.2
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
npmPackages:
expo: ^36.0.0 => 36.0.2
react: 16.9.0 => 16.9.0
react-dom: 16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4
react-native-web: ^0.11.7 => 0.11.7
react-navigation: ^4.2.2 => 4.2.2
npmGlobalPackages:
expo-cli: 3.20.1

@DmitryKvant
Copy link

Okey update unimodules to version 8 fix if

@zlanich
Copy link

zlanich commented Jun 4, 2020

@DmitryKvant What package did you upgrade to version 8? I'm seeing something like 5.1.* highest on these packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants