Cannot find symbol

android
#1

Bitrise Build Issue Report template

Description of the issue

I just started using bitrise.io and it has been great and stressful at the same time, after fixing so many errors, I just stumbled on one that I won’t be able to fix, in the anroid-build flow, I am getting this weird error message

 Task :capacitor-android:compileReleaseJavaWithJavac
/bitrise/src/apps/mobile/worker/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/Plugin.java:9: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
                             ^
  symbol:   class ActivityCompat
  location: package android.support.v4.app
/bitrise/src/apps/mobile/worker/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/Plugin.java:10: error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatActivity;
                             ^
/bitrise/src/apps/mobile/worker/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java:13: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
                                 ^
/bitrise/src/apps/mobile/worker/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java:14: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
/bitrise/src/apps/mobile/worker/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java:15: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
/bitrise/src/apps/mobile/worker/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java:16: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;

Build log

This is my build log https://app.bitrise.io/build/da46fe4111ae8163#?tab=log

0 Likes