Recent

Author Topic: Apk won't be installed  (Read 519 times)

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Apk won't be installed
« on: June 05, 2020, 09:56:51 pm »
- I compiled a sample project and have a debug and a release .apk file.
- I have copied those files to the Download directory of an android phone using gmtp on Linux.
- With Cx file explorer on the phone, I can see those files. If I press one of them, the first time it asks me to allow the explorer to be a source. I enable that.
- Then, still in Cx file explorer, if I press on of the .apk file, it asks if I want to install it. I say yes. And it tells me it has not been installed.

How can I know what was the problem when installing? Can I run the .apk without installing it?

Note:
- the release version is unsigned.
- I activated the debug USB mode on the phone, but the application does not appear in the list of applications to be debugged. Maybe there is a way to run the application from there?
« Last Edit: June 05, 2020, 09:59:44 pm by circular »
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3699
  • Leandro Diaz
Re: Apk won't be installed
« Reply #1 on: June 07, 2020, 12:56:36 am »
You enabled "install from untrusted sources" setting in your phone?

Also on modern android versions, that setting is per application, so you must enable it for your file explorer.

lainz

  • Hero Member
  • *****
  • Posts: 3699
  • Leandro Diaz
Re: Apk won't be installed
« Reply #2 on: June 07, 2020, 12:59:06 am »
Also check if the apk is 32 bit and your phone is 64 bit maybe?

lainz

  • Hero Member
  • *****
  • Posts: 3699
  • Leandro Diaz
Re: Apk won't be installed
« Reply #3 on: June 07, 2020, 06:37:15 am »
Another thing that can be is the api level. Which version you selected and what's your phone android version. Each android version supports a different api level.

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: Apk won't be installed
« Reply #4 on: June 07, 2020, 01:53:27 pm »
Yep I enabled install from the explorer.

The output.json near the .apk file in the outputs folder says it is arm64. The CPU is ARM Cortex-A53 which is arm64 as well. Though I just read that the OS would be 32-bit. I am going to try to make a 32-bit apk.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: Apk won't be installed
« Reply #5 on: June 07, 2020, 02:08:52 pm »
Ok I changed the target chipset to "ARMv7a+VFPv3" and now it installs and runs ok. Thanks.

Well the controls are all stacked one on the other but that's another story.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018