Problems with Copy GeoQuiz Directory to GeoQuiz Challenge

I follow the instructions to Copy the “GeoQuiz” Directory and renaming to “GeoQuiz Challenge”. Then File → New → Import Project and navigate and select “GeoQuiz Challenge”.

After I was in the GeoQuiz Challenge Project and I click the Green Arrow to Run the application in the emulator I get the below error and it does not run. The original GeoQuiz project still works fine. What am I doing wrong?

Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: Split lib_dependencies_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.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

SOLVED: Found Online…

(Tested multiple times as of version 2.3.3)

  1. Close Android Studio

  2. Navigate to projects directory and find the project folder you wish to replace

  3. Copy the project folder, paste in the same directory and rename (no spaces)

  4. Open Android Studio, opening copied/new project

  5. If prompted to remove Gradle import from the project, leave checked and click ok.

  6. Under app, res, values, open strings.xml and update the app name. You will likely come back here to edit further strings to fit your new app.

  7. In, highlight the part of the package name that needs to be changed (usually the last part after the period, e. g. in the package net.androidbootcamp.concerttickets you would select concerttickets).

  8. Right-click on selection and choose refactor, then rename.

  9. When prompted to rename package or rename directory, first choose rename directory, leave comments checked and proceed.

  10. Be patient until the bottom left corner says “[n] occurrences changed”.

  11. Repeat steps 8-10, but this time choose rename package, then check both boxes (comments and text occurrences), and proceed.

  12. It will give you a refactor preview at the bottom, click “Do Refactor”.

  13. Click the synchronize button (Ctrl+Alt+Y).

  14. Select build, clean project.

  15. Use project search and replace to double check your package names. My experience has been without issue but this is just in case. After refactoring, you may also notice that the full package name now displays as a prefix for resources in the code, for example, “…” instead of just “…” Either is fine but this can be quickly remedied with search and replace, as needed, for readability. If you perform this step, select build and clean project, afterward.

  16. Run app to test before modifying further.

NOTE: You may need to re-select your theme for your (internal) emulator or make other similar environment-specific changes.

Hello everyone!

I too faced this problem and I like to believe the solution can be much simpler than QBang’s, although I do appreciate him answering his own question :stuck_out_tongue_winking_eye:

On Stackoverflow I found this thread: Installation failed to finalize session... Signatures are inconsistent - Android - Stack Overflow.

The answer:

This error usually happens to me in Android Studio when I try to open a project that was moved from another path or location, also other circumstances might cause this, what works for me is:

  1. menu “Build” run “Clean Project”. 2) menu “Build” run “Rebuild Project”.

Then run app on device or emulator, and error goes away. I know the error has nothing to do with this but that’s what fixes it for me, try and let me know.

For me this worked like a charm. Hope it does for you as well!

  • Martijn
1 Like


Thank you MartijnKor. That was awesome.

Appvn Jio4GVoice

Running app on device 3DS Emulator or emulator the error goes away.

This is one of the best articles for epf balance check