When opening App Capacitor on android device this not working

ionic --version: 6.10.1

I can’t open my app from an android device using capacitor.
When I open the application my android device says it "x(name app folder) IT HAS STOPPED " with an alert
and the app closes.

I do on terminal - android studio (before):

  1. ionic cap copy android --prod
  2. ionic capacitor open android // open on Android Studio
  3. build --> build buildle --> build apk (from Android Studio)

I can install apk but not open ( IT HAS STOPPED )

Android Device: Version: 5.0.2

Thanks.

You can use logcat in AS to see the exception which is causing the app to crash.