V
V
Vasily Melnikov2019-03-04 11:52:38
Android
Vasily Melnikov, 2019-03-04 11:52:38

Why is apk not installed on some phones?

Beginner android development.
I made a simple application that does not require any permissions, except for Internet access.
On a dozen phones and emulators, it installs and works with android versions from 4.1 to 8.0.
But there are a couple of phones on which, during installation, it says "well, I couldn't" and that's it, maybe you can see some logs or something else. Maybe something in the system settings of the phones themselves.
On these devices system 6.0 and 8.0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2019-03-05
@akaish

You need to look at the following things:
1. Application logs on the device. You can see them using the utility a la https://play.google.com/store/apps/details?id=com.... at least it works without root on my old Sony Z1 bucket (someone then in the comments to your question he wrote that logcats may require root rights, this one definitely does not require for many versions of android). Also, to view the logs, just the installed SDK with a package of related utilities on the laptop is enough, for example (android sdk tools, well, how much they take, 200 megabytes maximum).
2. You need to look at your manifest. There are a number of nuances that the android apk installer can look at. I can’t tell right off the bat exactly what the nuances are, I just need to read the documentation.
3. If you are using native libraries, there is some chance you are trying to run an application with a library compiled for a different architecture.
4. You can use outdated or, vice versa, not yet existing APIs for a specific version in your application.
5. If you use multi dex, I personally had a jamb with it for one project, it didn’t run on 5-ke on some devices. I spat, because the project got into the 64K limit on methods.
6. If you download the application from a flash drive, for example, through an adapter, or in some other way without checking the checksums, there may be errors associated with a broken apk file.
7. The application may not pass, for example, the antivirus on the device. There may be a ban on installing applications from third-party sources. It may be that there is a ban on installing apk files that are not signed at all, or signed only with debug keys in the absence of developer mode (hypothesis).
I did not encounter your problem, I threw hypothetical options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question