lgdelai
lgdelai

Reputation: 51

Android app does not start after renaming package in android studio

I need to rename the package to send the app to google. But the change to org.telegram org.delai the application to start up.

It starts to load and closes.

The error I get is this:

06-07 05:12:24.881 21879-21879/org.delai.messenger A / libc: Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code = 1), thread 21879 (delai.messenger) 

I use refactor and also changed the package name in android manifest, but still the error persists.

can someone give me a light?

Thanks!.

Upvotes: 4

Views: 1903

Answers (2)

Aldinjo
Aldinjo

Reputation: 432

I have the same problem, because the package name of my app changed between different versions of my VCS (git), so whenever I checkout a version where the package name is different from the package name cached by Android Studio, the app does not start with a warning can not find activity com.old.package.path.StartActivity.

For me, the solution was to close and restart Android Studio so it will reload the project and reassemble the package name. After cleaning and rebuilding the project, the app starts again. It might be sufficient to go to File / Invalidate Caches / Restart... in the menu of AndroidStudio

Upvotes: 2

Elias Meireles
Elias Meireles

Reputation: 1058

Go to the build.gradle of your project...

android {
compileSdkVersion 28
defaultConfig {
    applicationId "Set in here your application package"
    minSdkVersion 15
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

Upvotes: 0

Related Questions