Closed SatyendraNathMaurya closed 1 year ago
somebody plz help
resolved
How you resolved?
@SatyendraNathMaurya how to solve this, i get same issues
@SatyendraNathMaurya plz help, how did you do that
Running npx jetify
fixed it for me. This module should be updated to use AndroidX packages instead of old Android support libraries.
How you resolved?
how?
resolved
Seriously, there are few things on this good earth that infuriate me more than something like this. For crying out loud SAY HOW YOU FIXED IT. A special place in hell is reserved for people like you. Arghh.
Anyone solution?
@SatyendraNathMaurya how did you fix this nigga? U dead or wot?
To ensure compatibility with React Native modules that use AndroidX, follow these steps:
Install Jetifier:
npm install -g jetify
Update package.json: Add or modify these lines in the "scripts" section:
"postinstall": "npx jetify"
if you already have "postinstall": "patch-package"
:
"prepare": "patch-package",
"postinstall": "npx jetify"
This ensures Jetifier (npx jetify) runs after installing dependencies (npm install), transforming incompatible libraries to AndroidX.
Your Environment
Context
Expected Behavior
Actual Behavior
Possible Fix
Steps to Reproduce
Context
java -version java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
react-native --v react-native-cli: 2.0.1 react-native: 0.71.0
---**My android/build.gradle file is as below*****
buildscript {
}
allprojects { repositories { google()
} ext { buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33 supportLibVersion ="1.1.0" //supportLibVersion = "28.0.0" googlePlayServicesVersion = "17+" gradle3EXPERIMENTAL = "yes"
---------**android/app/build.gradle***** apply plugin: "com.android.application" apply plugin: "com.facebook.react"
import com.android.build.OutputFile
/**
By default you don't need to apply any configuration, just uncomment the lines you need. / react { / Folders */ // The root of your project, i.e. where "package.json" lives. Default is '..' // root = file("../") // The folder where the react-native NPM package is. Default is ../node_modules/react-native // reactNativeDir = file("../node-modules/react-native") // The folder where the react-native Codegen package is. Default is ../node_modules/react-native-codegen // codegenDir = file("../node-modules/react-native-codegen") // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js // cliFile = file("../node_modules/react-native/cli.js")
/ Variants / // The list of variants to that are debuggable. For those we're going to // skip the bundling of the JS bundle and the assets. By default is just 'debug'. // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. // debuggableVariants = ["liteDebug", "prodDebug"]
/ Bundling / // A list containing the node command and its flags. Default is just 'node'. // nodeExecutableAndArgs = ["node"] // // The command to run when bundling. By default is 'bundle' // bundleCommand = "ram-bundle" // // The path to the CLI configuration file. Default is empty. // bundleConfig = file(../rn-cli.config.js) // // The name of the generated asset file containing your JS bundle // bundleAssetName = "MyApplication.android.bundle" // // The entry file for bundle generation. Default is 'index.android.js' or 'index.js' // entryFile = file("../js/MyApplication.android.js") // // A list of extra flags to pass to the 'bundle' commands. // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle // extraPackagerArgs = []
/ Hermes Commands / // The hermes compiler command to run. By default it is 'hermesc' // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" // // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" // hermesFlags = ["-O", "-output-source-map"] }
/**
/**
/**
def jscFlavor = 'org.webkit:android-jsc-intl:+'
Date.toLocaleString
andString.localeCompare
that/**
android { ndkVersion rootProject.ext.ndkVersion
}
dependencies { // The version of react-native is set by the React Native Gradle Plugin
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
-----AndroidManifest.xml**
Debug logs
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings 22 actionable tasks: 17 executed, 5 up-to-date D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:17: error: package android.support.v4.content does not exist import android.support.v4.content.ContextCompat; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:18: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\Config.java:15: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\BackgroundLocation.java:10: error: package android.support.v4.util does not exist import android.support.v4.util.TimeUtils; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:4: error: package android.support.annotation does not exist import android.support.annotation.NonNull; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:5: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:32: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:33: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceIntentBuilder.java:24: error: package android.support.annotation does not exist import android.support.annotation.IntDef; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceIntentBuilder.java:31: error: cannot find symbol @IntDef({ ^ symbol: class IntDef D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:12: error: package android.support.annotation does not exist import android.support.annotation.RequiresApi; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:13: error: cannot find symbol import android.support.v4.app.NotificationCompat; ^ symbol: class NotificationCompat location: package android.support.v4.app D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:14: error: cannot find symbol import android.support.v4.app.NotificationCompat; ^ symbol: class NotificationCompat location: package android.support.v4.app D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:15: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:20: error: cannot find symbol BackgroundLocation transformLocationBeforeCommit(@NonNull Context context, @NonNull BackgroundLocation location); ^ symbol: class NonNull location: interface LocationTransform D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:20: error: cannot find symbol BackgroundLocation transformLocationBeforeCommit(@NonNull Context context, @NonNull BackgroundLocation location); ^ symbol: class NonNull location: interface LocationTransform D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:19: error: cannot find symbol @Nullable ^ symbol: class Nullable location: interface LocationTransform D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\Config.java:355: error: cannot find symbol @Nullable ^ symbol: class Nullable location: class Config D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\Config.java:360: error: cannot find symbol public void setNotificationsEnabled(@Nullable Boolean notificationsEnabled) { ^ symbol: class Nullable location: class Config D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:739: error: cannot find symbol public static void setLocationTransform(@Nullable LocationTransform transform) { ^ symbol: class Nullable location: class LocationServiceImpl D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:743: error: cannot find symbol public static @Nullable LocationTransform getLocationTransform() { ^ symbol: class Nullable location: class LocationServiceImpl D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:119: error: cannot find symbol @RequiresApi(api = Build.VERSION_CODES.O) ^ symbol: class RequiresApi location: class NotificationHelper D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:126: error: cannot find symbol @RequiresApi(api = Build.VERSION_CODES.O) ^ symbol: class RequiresApi location: class NotificationHelper D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:134: error: cannot find symbol @RequiresApi(api = Build.VERSION_CODES.O) ^ symbol: class RequiresApi location: class NotificationHelper D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:199: error: cannot find symbol LocalBroadcastManager.getInstance(getContext()).registerReceiver(serviceBroadcastReceiver, new IntentFilter(LocationServiceImpl.ACTION_BROADCAST)); ^ symbol: variable LocalBroadcastManager location: class BackgroundGeolocationFacade D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:208: error: cannot find symbol LocalBroadcastManager.getInstance(context).unregisterReceiver(serviceBroadcastReceiver); ^ symbol: variable LocalBroadcastManager location: class BackgroundGeolocationFacade D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:489: error: cannot find symbol if (ContextCompat.checkSelfPermission(context, perm) != PackageManager.PERMISSION_GRANTED) { ^ symbol: variable ContextCompat location: class BackgroundGeolocationFacade D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\BackgroundLocation.java:824: error: cannot find symbol TimeUtils.formatDuration(elapsedRealtimeNanos / 1000000L, s); ^ symbol: variable TimeUtils location: class BackgroundLocation D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:628: error: cannot find symbol LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent); ^ symbol: variable LocalBroadcastManager location: class LocationServiceImpl D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:55: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, NotificationHelper.SERVICE_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:55: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, NotificationHelper.SERVICE_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:144: error: package NotificationCompat does not exist NotificationCompat.Builder builder = null; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:147: error: package NotificationCompat does not exist builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:218: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:218: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:231: error: cannot find symbol LocalBroadcastManager.getInstance(getContext().getApplicationContext()).sendBroadcast(intent); ^ symbol: variable LocalBroadcastManager location: class SyncAdapter Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 36 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':@mauron85_react-native-background-geolocation-common:compileDebugJavaWithJavac'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 1m 27s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:17: error: package android.support.v4.content does not exist import android.support.v4.content.ContextCompat; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:18: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\Config.java:15: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\BackgroundLocation.java:10: error: package android.support.v4.util does not exist import android.support.v4.util.TimeUtils; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:4: error: package android.support.annotation does not exist import android.support.annotation.NonNull; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:5: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:32: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:33: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceIntentBuilder.java:24: error: package android.support.annotation does not exist import android.support.annotation.IntDef; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceIntentBuilder.java:31: error: cannot find symbol @IntDef({ ^ symbol: class IntDef D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:12: error: package android.support.annotation does not exist import android.support.annotation.RequiresApi; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:13: error: cannot find symbol import android.support.v4.app.NotificationCompat; ^ symbol: class NotificationCompat location: package android.support.v4.app D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:14: error: cannot find symbol import android.support.v4.app.NotificationCompat; ^ symbol: class NotificationCompat location: package android.support.v4.app D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:15: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:20: error: cannot find symbol BackgroundLocation transformLocationBeforeCommit(@NonNull Context context, @NonNull BackgroundLocation location); ^ symbol: class NonNull location: interface LocationTransform D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:20: error: cannot find symbol BackgroundLocation transformLocationBeforeCommit(@NonNull Context context, @NonNull BackgroundLocation location); ^ symbol: class NonNull location: interface LocationTransform D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\LocationTransform.java:19: error: cannot find symbol @Nullable ^ symbol: class Nullable location: interface LocationTransform D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\Config.java:355: error: cannot find symbol @Nullable ^ symbol: class Nullable location: class Config D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\Config.java:360: error: cannot find symbol public void setNotificationsEnabled(@Nullable Boolean notificationsEnabled) { ^ symbol: class Nullable location: class Config D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:739: error: cannot find symbol public static void setLocationTransform(@Nullable LocationTransform transform) { ^ symbol: class Nullable location: class LocationServiceImpl D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:743: error: cannot find symbol public static @Nullable LocationTransform getLocationTransform() { ^ symbol: class Nullable location: class LocationServiceImpl D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:119: error: cannot find symbol @RequiresApi(api = Build.VERSION_CODES.O) ^ symbol: class RequiresApi location: class NotificationHelper D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:126: error: cannot find symbol @RequiresApi(api = Build.VERSION_CODES.O) ^ symbol: class RequiresApi location: class NotificationHelper D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:134: error: cannot find symbol @RequiresApi(api = Build.VERSION_CODES.O) ^ symbol: class RequiresApi location: class NotificationHelper D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:199: error: cannot find symbol LocalBroadcastManager.getInstance(getContext()).registerReceiver(serviceBroadcastReceiver, new IntentFilter(LocationServiceImpl.ACTION_BROADCAST)); ^ symbol: variable LocalBroadcastManager location: class BackgroundGeolocationFacade D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:208: error: cannot find symbol LocalBroadcastManager.getInstance(context).unregisterReceiver(serviceBroadcastReceiver); ^ symbol: variable LocalBroadcastManager location: class BackgroundGeolocationFacade D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\BackgroundGeolocationFacade.java:489: error: cannot find symbol if (ContextCompat.checkSelfPermission(context, perm) != PackageManager.PERMISSION_GRANTED) { ^ symbol: variable ContextCompat location: class BackgroundGeolocationFacade D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\data\BackgroundLocation.java:824: error: cannot find symbol TimeUtils.formatDuration(elapsedRealtimeNanos / 1000000L, s); ^ symbol: variable TimeUtils location: class BackgroundLocation D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\service\LocationServiceImpl.java:628: error: cannot find symbol LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent); ^ symbol: variable LocalBroadcastManager location: class LocationServiceImpl D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:55: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, NotificationHelper.SERVICE_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\NotificationHelper.java:55: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, NotificationHelper.SERVICE_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:144: error: package NotificationCompat does not exist NotificationCompat.Builder builder = null; ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:147: error: package NotificationCompat does not exist builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:218: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:218: error: package NotificationCompat does not exist NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID); ^ D:\WorkspaceSatyendra\Projects\GitLab\SrSavior\Latest\Kavach911 Protectee\node_modules\@mauron85\react-native-background-geolocation\android\common\src\main\java\com\marianhello\bgloc\sync\SyncAdapter.java:231: error: cannot find symbol LocalBroadcastManager.getInstance(getContext().getApplicationContext()).sendBroadcast(intent); ^ symbol: variable LocalBroadcastManager location: class SyncAdapter Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 36 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':@mauron85_react-native-background-geolocation-common:compileDebugJavaWithJavac'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 1m 27s
info Run CLI with --verbose flag for more details.