Femn Dharamshi
Femn Dharamshi

Reputation: 577

Creating a debug app

Okay so i have an application, put up on the playstore.

What i want now, it to create the same application but with debug postfix in the name and it must have everything same. I want to do this, because i do not want to disturb my original project when i am experimenting stuff,

So what i did was, i copied the project folder from wherever it was to the desktop, original one had the package name com.femindharamshi.spa so i refactored the whole thing to com.femindharamshidebug.spadebug and all changed the app_name in string

but when i try to open this app in the emulator, Android Studio Gives me the following error :

Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: Split_lib_slice_4_apk was defined multiple times. It is possible that this issue is resolved by uninstalling an existing version of the apk, if it is present, and then re-installing

Also i do not want to uninstall the original app from the emulator/physical device, i just want to add this app for testing purposes. What should i do ?

Upvotes: 1

Views: 129

Answers (2)

Uma Achanta
Uma Achanta

Reputation: 3729

change you application ID in app level build.gradle file and sync the project

applicationId "//pkg id here"

Upvotes: 0

Mukesh Mande
Mukesh Mande

Reputation: 54

Try closing the Android Studio and giving clean and build to the project.

Upvotes: 1

Related Questions