Capacitor app crash on start

Hi all,
I created my first app. I uploaded package on my Google Developer Console in order to install it on my device but when I open app, it crash.

In logcat I read:

Unable to instantiate activity ComponentInfo{it.mgdlab.app.hellocapacitor/it.mgdlab.app.hellocapacitor.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "it.mgdlab.app.hellocapacitor.MainActivity" on path: DexPathList[[zip file "XXlib/arm /system/lib /system_ext/lib]]

How can I solve the issue?

Check this post to make sure you got everything when renaming your project. It kinda looks like you didn’t rename the folder structure.

Does it run fine in the Android Emulator?

If I open the project into Android Studio and upload it on my real device, it works

If I create package from shell and I publish it in internal test, when I download app and open it, it crashes

:frowning:

I have a similar issue on a Capacitor 6.0 build. I’ve reviewed the attached video of the UI tests but I can’t see anything crashing. Considering in my case the package name is com.google.testing.helium.utp.android.companion.instrumentations.uid I wonder if this is an actual error in the tests rather than my app? :thinking:

According to this post it might be a Gradle bug? Everyday Vignettes » [RN/Android] 리젝 리포트 - Gradle 버전 이슈 - Everyday Vignettes