1. Are you ready for the Galaxy S20? Here is everything we know so far!

Cannot install APK on Xperia XA2

Discussion in 'Android Apps & Games' started by Somogyi Henrik, Jun 14, 2020.

  1. Somogyi Henrik

    Thread Starter

    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"
     



    1. Download the Forums for Android™ app!


      Download

       
  2. ocnbrze

    ocnbrze DON'T PANIC!!!!!!!!!

    how much room do you have on your device?
     
    MrJavi likes this.
  3. Somogyi Henrik

    Thread Starter

    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)
     
  4. Have you tried to forcely "push" the apk with ADB?
    sudo adb install <.apk file> on Linux, without sudo for Windows.
     
    ocnbrze and Unforgiven like this.
Loading...
Similar Threads - Cannot install APK
  1. CiDefaid
    Replies:
    3
    Views:
    290
  2. Bob65
    Replies:
    1
    Views:
    702
  3. Janeire
    Replies:
    2
    Views:
    270
  4. Paolo Giovanelli
    Replies:
    0
    Views:
    488
  5. mikewax
    Replies:
    0
    Views:
    431
  6. unet
    Replies:
    0
    Views:
    559
  7. DridriLaBastos
    Replies:
    0
    Views:
    512
  8. kgash
    Replies:
    6
    Views:
    664
  9. Yankleber
    Replies:
    5
    Views:
    3,121
  10. Victor Connor
    Replies:
    10
    Views:
    10,022

Share This Page

Loading...