Closed mtrnik closed 2 years ago
@mtrnik Hello, have you used "Sync project with gradle files" or capacitor sync after installing package?
@gokadzev no, should I?
@gokadzev no, should I?
yes, are you using ionic?
@gokadzev yes I am using Ionic-Vue
I synced project with gradle files but still the same error message in console. (MainActivity.java looks visually good now)
@mtrnik try to run ionic cap sync
in project root folder with terminal (not in android folder)
@gokadzev I did that several times before
@mtrnik i use this plugin in ionic project for test as well but there's not any error. maybe you need to clear cache with rm -r $HOME/.gradle/caches/
from terminal and reopen project.
I just ran a clean -> build and this was resolved for me FYI
I'm getting the same error, cleaning project didnt help, as well as @gokadzevs proposal
@mtrnik @sanderschnydrig what's your compile sdk version?
I'm not getting this error anymore after invalidating caches and setting
compileSdkVersion = 31
targetSdkVersion = 31
in the variables.gradle file.
@gokadzev thanks, wish I saw your comment earlier.
@gokadzev what if we want to target 30?
Hello I am getting following error:
..../app/node_modules/capacitor-music-controls-plugin-new/android/src/main/java/com/gokadzev/capacitormusiccontrols/MusicControlsNotification.java:256: error: cannot find symbol resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent, PendingIntent.FLAG_MUTABLE); ^ symbol: variable FLAG_MUTABLE location: class android.app.PendingIntent
Do you know what is causing the issue and how to fix that?