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?
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…
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
KkkSss
May 18, 2024, 10:50pm
4
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