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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work in android 13 #195

Open
kabitacode opened this issue Oct 11, 2023 · 1 comment
Open

Not work in android 13 #195

kabitacode opened this issue Oct 11, 2023 · 1 comment

Comments

@kabitacode
Copy link

Hi, thanks for creating this awesome package, but there was a problem running it.

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':react-native-background-actions:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.

node_modules/react-native-background-actions/android/src/main/java/com/asterinet/react/bgactions/RNBackgroundActionsTask.java:44: error: cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { ^ symbol: variable S location: class VERSION_CODES

error: cannot find symbol contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, PendingIntent.FLAG_MUTABLE);
^
symbol: variable FLAG_MUTABLE
location: class PendingIntent
2 errors

   in my android/build.gradle :

   buildToolsVersion = "30.0.2"
    minSdkVersion = 21
    compileSdkVersion = 33 
    targetSdkVersion = 33 
@Sravansuhas
Copy link

Even i'm not sure what went wrong in your case, Even i'm also using Android 13, I'm not facing any issues. Can you uninstall and install the lib and make sure you implemented every step mention in the installation guide. Still, if you're facing the error, try to create an example project and run the lib again.

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

No branches or pull requests

2 participants