Only one APK can be installed in debug builds with different package names

Asked 2 years ago, Updated 2 years ago, 37 views

I am developing multiple projects in monaca.

I tried to install the APK (package name is different) that I created in the debug build for Android on the same device, but only one of them can be installed.

Is there anyone who has experienced a similar phenomenon or knows how to avoid it?

I found an answer that could be installed by changing the package name, but it didn't solve the problem, so I asked you.

monaca

2022-09-30 16:56

1 Answers

I think it's due to debugger constraints.

If multiple packages are installed in a debug build, the debugger will have to deal with multiple packages debugging.
However, a typical debugger can only support debugging of a single program (package).
That's why we limit the debug build package to one.(Debug builds are signed by dummy, so they are distinguishable.)

If you want to debug two packages, repeat 1) and 2) below.
1)A release build of one package (a) and a debug build of the other package (b) are installed to verify and debug the operation of the debug built package (b).
2)Once done, release the debug build package (b) and debug build the previously released package (a).Install these two to verify and debug the debug build package (a).


2022-09-30 16:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.