Make sure to follow this manual step in your project file android/app/src/main/java/myapp/MainApplication.java. Add the following line to the end of the onCreate() method:
BackgroundTaskPackage.useContext(this);
Error encountered during Task :app:compileDebugJavaWithJavac.
This build used deprecated Gradle features, which makes it incompatible with Gradle 6.0.
To see individual deprecation warnings, use '--warning-mode all'.
For more information, visit here.
23 tasks need to be completed: 2 executed, 21 up-to-date
G:\background\android\app\src\main\java\com\background\MainApplication.java:19: error: BuildConfig variable not found
return BuildConfig.DEBUG;
^
G:\background\android\app\src\main\java\com\background\MainApplication.java:47: error: Unable to find symbol
BackgroundTaskPackage.useContext();