enter image description hereI developped an Android Mobile Application, and extract APK fro Android studio but when I send APK to other Mobiles ,, a Message display message say cannot install this APK ..Could anyenter image description hereone help me where is the Problem and how to solve it ?
-
have you correctly generate your apk – Ara Hakobyan Apr 21 '17 at 07:58
-
which message??? dispaer to me – Aditya Vyas-Lakhan Apr 21 '17 at 08:15
-
In the image app name is app-debug.rar.. is it correct or you have compressed the apk file.. it should be app-debug.apk – Ichigo Kurosaki Apr 21 '17 at 08:23
-
I generated APK and it run successfuly on my mobile but when i send it to another mobile it cann't run – Mouaz Salah Apr 21 '17 at 08:31
3 Answers
You don't give any detail information. So I guess...
minSDK - 24 / real device - 21 -> You can not install.
you should check your minSDK from your build.gradle.appropriate building : menu -> Build -> Build APK.
then you can find your APK from "YourProject\app\build\outputs"

- 595
- 3
- 14
-
I edited the sdk from 19 to 24 as you said .. but where's the real device ? – Mouaz Salah Apr 21 '17 at 08:16
-
nono... your minSDK should be lower than your real device(the device you have) – Soo Chun Jung Apr 21 '17 at 08:47
-
My devicee is 4.4.2 .. whick sdk suitable to this ?? and how do i know that later – Mouaz Salah Apr 21 '17 at 09:30
-
[check this one](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html) – Soo Chun Jung Apr 21 '17 at 09:37
-
Try to install you APK on the same device that you can already run your app from android studio, if there'll be an error then generate your apk correctly, or if there'll be no errors then it should be from device version, change you minSDK version from gradle
try to change minSdkVersion 15

- 1,682
- 1
- 10
- 21
-
It's Run successfuly on my device but not installed on any aother device – Mouaz Salah Apr 21 '17 at 08:31
-
-
-
-
Usually this occurs when there is an unchecked runtime error in the code or if the compile version is different from the Mobile.
Also you should check your AndroidManifest to see if here maybe a services used in the code that are not requisitioned in the manifest file

- 72
- 1
- 11
-
-
this is totally up to you. Choose a version that you are comfortable with. it usually one for which the compiler is present on your system. but if i was to recommend on it would be minSDK version 15 – Temire Emmanuel Apr 26 '17 at 10:36