• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Cannot install APK on Xperia XA2

Hello,

I cannot simply install the apk of my Android app on Sony Xperia XA2.

I gave permission for unkown apk sources
I disabled AVG Protection (who knows)
I gave "install" permission to Chrome also
I tried with: 1. Astro File Manager, 2. Chrome 3. "APK Installer" from apk.cafe
In all cases I can press "install" button wih result message "App not installed".

Why ???

Backround: I have created a small Android app. In debug mode (debug build) it deploy and runs fine on my Sony Xperia by using Android Studio + ADB. Now I created a release build (with own certificate made by Android Studio's menu) to see how it runs. But I cannot install it :(

Any hints are welcome. Crazy to spend hours on a 2 min action...

ps: I logged my efforts:
-------------------------------------------------------------------------------------------

- Try this new APK on Som's phone:
- delete the debug version (to make sure that I see the release version)
- keep phone in "debug" mode
- copy the APK into "internal..." / "Download"
- install from the APK:
- Astro File Manager : can find apk
- Open with : "Package installer" selected
- starting isnstall says: "app not installed"
WHY ????
- "Apps & Notification" / AVG Protection / "Advanced" / "Install unknown apps" : "Allowed"
- starting isnstall says: "app not installed"
Still !! Why ???
- this has not helped:
- https://www.expressvpn.com/it/suppo...MI3MWI6d-B6gIVjU8YCh2OqgJ7EAAYASAAEgIWQfD_BwE
- https://www.lifewire.com/install-apk-on-android-4177185

- https://stackoverflow.com/questions/3659310/how-to-install-apk-file-on-the-xperia-android-mobile
: "some devices may block the installation of non-market apks"
- https://forum.xda-developers.com/xp...-apk-files-t2271081/post41222140#post41222140
: some apps block app install from unknown sources, so:
- Disabled "AVG Proection" + retried: still "App not installed"
WHY ???
- I could also try to install by Chrome, but I could not get a good URL...(file:///...)
file:///storage/ >> ERR_ACCESS_DENIED
- "Unrestricted data" given to ASTRO : still "App not installed"
- Could this help?: https://apk-installer1.apk.cafe/sony/xperia-xa2
- I installed this "APK Installer", asked it to install Colormix : same failure: "App not installed"
 
how much room do you have on your device?
thanks for checking!

Internal device memory: 13 GB free out of 32 GB
SD card: 6.2 GB free out of 8 GB
Memory does not seem to be the issue.

What I realized afterwards and strange was: my app was "halfway" there: it was listed among the apps with a short-cut message "Not installed for this us". I think the message ended as "..for this user".. Well, I am not aware of any users, as I recall I set myself as a user when I initialized the phone. BTW, I could delete my incompletely installed app (the release build), and then I could continue to deploy the debug-build via USB+ADB.
So, is there any other hint? (I just simply want to try how a release build runs - without GooglePlay)
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones