M
M
mbenner2020-05-27 12:44:06
Android
mbenner, 2020-05-27 12:44:06

How to understand why the application is not installed on an android device?

I made a simple flutter application. I run it on emulators, with different APIs (16, 24, 28) - it works.
I sent the file to a real device, I get the message:
"The application is not installed"
Phone: Xiaomi Redmi note 8 pro and Samsung galaxy s5

flutter doctor -:
Flutter (Channel stable, v1.17.1, on Microsoft Windows [Version 10.0.17763.1098], locale ru -RU)
• Flutter version 1.17.1 at F:\flutter\flutter_sdk
• Framework revision f7a6a7906b (2 weeks ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2

[√ ] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Platform android-29, build-tools 29.0.3
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] Android Studio (version 3.6)
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212 -release-1586-b04)

[√] VS Code, 64-bit edition (version 1.45.1)
• Flutter extension version 3.10.2

[√] Connected device (1 available)
• emulator-5554 • emulator-5554 • android- x86 • Android 4.1.2 (API 16) (emulator)

All sdk latest. How to understand what is not suitable on a real device?

PS the project is compiled only if build.gradle says:
compileSdkVersion 28 - could this be the reason? on all real devices api below

UPD. Connected the phone to debugging. At the same time, the compiled apk is installed and running.

I made a release - the application is installed, but does not work))) (this is another question)

As a result, the question is: Why is apk not installed on the device, in debug mode?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick, 2020-06-02
@DragonSpirit

In general, they support quite old devices on the dock , I advise you to look at third-party plugins for dependencies, and also allow installation via usb and from unknown sources. Most likely, miui and one ui firmwares have additional installation restrictions.
I advise you to look at the logs, perhaps there will be indicated the reason that interferes with the installation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question