# Capacitor app crash on start

**URL:** <https://forum.ionicframework.com/t/capacitor-app-crash-on-start/238948>\
**Category:** Ionic Framework\
**Created:** [January 9, 2024, 12:07pm UTC](https://forum.ionicframework.com/t/capacitor-app-crash-on-start/238948 "2024-01-09T12:07:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsantaniello](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Post date:** [January 9, 2024, 12:07pm UTC](https://forum.ionicframework.com/t/capacitor-app-crash-on-start/238948/1 "2024-01-09T12:07:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [January 9, 2024, 3:53pm UTC](https://forum.ionicframework.com/t/capacitor-app-crash-on-start/238948/2 "2024-01-09T15:53:59Z")

</div>

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?

> [@Change application name on android platform](https://forum.ionicframework.com/t/change-application-name-on-android-platform/220594/2):
>
> These are the other places: applicationId in android/app/build.gradle android/app/src/main/res/values/strings.xml If you want to update the package name to match, then you need to update the following items. For the example our new package is com.awesome.app android/app/src/main/AndroidManifest.xml manifest -\> package manifest -\> application -\> activity -\> android:name \<?xml version='1.0' encoding='utf-8'?\> \<manifest package="com.awesome.app" xmlns:android="http://schemas.android.com/ap…

---

<div class="post-metadata">

**Author:** ![lsantaniello](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lsantaniello](https://forum.ionicframework.com/u/lsantaniello)\
**Post date:** [January 10, 2024, 1:46pm UTC](https://forum.ionicframework.com/t/capacitor-app-crash-on-start/238948/3 "2024-01-10T13:46:03Z")

</div>

> [@twestrick](#):
>
> 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

☹

---

<div class="post-metadata">

**Author:** ![KkkSss](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@KkkSss](https://forum.ionicframework.com/u/KkkSss)\
**Post date:** [May 18, 2024, 10:50pm UTC](https://forum.ionicframework.com/t/capacitor-app-crash-on-start/238948/4 "2024-05-18T22:50:24Z")

</div>

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? 🤔

According to this post it might be a Gradle bug? [Everyday Vignettes » [RN/Android] 리젝 리포트 - Gradle 버전 이슈 - Everyday Vignettes](https://everydayvignettes.com/?p=551)

 ![Screenshot 2024-05-19 at 00.39.54](https://global.discourse-cdn.com/ionicframework/original/3X/e/a/eac808a0bd6efb9f0f93a17ba16d987309b5d948.png)
