2

Am not able to install the APK in my mobile generated by gradle. it's working fine on an emulator but when I try to install on my mobile its starts installing and in the middle, it gives the error APK not installed. Am running android 10. Paths from where I picked the debug APKs are as follow.

<project>/build/app/outputs/apk/debug/app-debug.apk
<project>/build/app/outputs/apk/debug/app.apk
<project>/build/app/outputs/flutter-apk/app-debug.apk
irzum shahid
  • 181
  • 2
  • 12
  • Check if USB debugging is enabled in your device – Adithya Shetty Aug 24 '20 at 08:52
  • @AdithyaShetty I tried this also. Actually am not debugging the app I just want to install it on my mobile to see if it's working properly on different mobiles as expected. I don't want to upload it on the store yet so I think i don't need a release apk with a signed certificate I just wanted to share the apk with client so that he can see how its working – irzum shahid Aug 24 '20 at 10:04
  • You mean to say you have a USB connection to the device and you run the app form the IDE/editor and it does not install the app in your phone? – Adithya Shetty Aug 24 '20 at 10:35
  • @AdithyaShetty there is no connection btw pc and mobile it's just an APK shared through BlueTooth to my device now I am trying to install it. – irzum shahid Aug 25 '20 at 06:07
  • I don't know why it is installing if install from unknow Sources is turned on. I have a way around, connect your phone with your PC run the APP from the editor, this will install the app on your phone as it does on an emulator, then stop running form the editor /ide, you should see the app installed in your phone. – Adithya Shetty Aug 25 '20 at 07:49
  • @AdithyaShettyokay I ll try this – irzum shahid Aug 31 '20 at 12:03
  • https://stackoverflow.com/a/65855995/1318946 – Pratik Butani Jan 23 '21 at 05:19

2 Answers2

0

It seems your apk does not have certificate yet. you cant install it just like that. you can either certify it build release android app

or set your phone to install app form unknown source. in app settings or security settings

0

If you're trying to manually install the app-debug.apk, you should rather consider generating app-release.apk but if you can't debug the app, then you might considering opening up your developer options.

Dhanush M
  • 3
  • 1