R
R
Rinat2018-04-20 11:05:49
Android
Rinat, 2018-04-20 11:05:49

The project does not start on android 4.4 how to fix it?

Help me understand what's wrong updated all SDK Tuzla, emulators. I am doing an initial setup project at least API 15 or 19 I am creating a project based on this tutorial developer.alexanderklimov.ru/android/activity.php switch to another screen. I compile everything on the emulator, I throw off the apk on android 4.4 is not even installed. I thought that the compilation is taking place for newer androids. I looked at the project settings and there is android 7.1 API 25 and tuzla 25. i.e. logically, in order to run on 4.4, I have to compile for API 15, and then they arrived. android studio swears that the API and tuzla must be the same version but the tuzla is at least 25 max 28. how can I run a project on android 4.0.3 and so that it works on both 5.1 and 7.1?
it is possible, of course, that I will have to support and compile separately, but how can I do this if the android studio does not allow it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2018-04-20
@renya555

The targetSdk and build tools version should be the same. MinSdk is responsible for the lower version. If it is set to 15 or 19, then everything will work on the corresponding versions of android (unless you explicitly mess up in the code). Most likely you are taking the wrong apk (the one that is going to be debugged, it can support instant run and because of this it will not be installed). Collect the release assembly, there will be a correct apk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question