Search Unity

Android Cache issue

Discussion in 'Editor & General Support' started by tobias_unity, Nov 5, 2020.

  1. tobias_unity

    tobias_unity

    Joined:
    Feb 3, 2018
    Posts:
    66
    Hey developers,

    Everytime I put out a new update on Android my players have the same issues (not being able to connect to server etc.). These issues normally get fixed when the player deletes the app and reinstalls it from the Play Store again. This makes me think it might be a cache problem (open for other ideas) - but how do I solve this? Is there a way to automatically delete the cache after a user updates the app?

    Everything always run smoothly on iPhone.
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    True, when updating app various files on disk remain present. You have to handle that and delete files causing problems if app was upgraded.
     
  3. tobias_unity

    tobias_unity

    Joined:
    Feb 3, 2018
    Posts:
    66
    Hey Aurimas-Cernius, thanks for your response. Any idea on how to handle this?
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    Is it something that you cache yourself or something that is automatically cached by Unity?
     
  5. tobias_unity

    tobias_unity

    Joined:
    Feb 3, 2018
    Posts:
    66
    I have not written anything cache related myself so it must be something automatic?
     
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    Which Unity version are you using exactly? We have made fixes in that area, make sure you are on a fixed version.
    Also, did you change any significant build settings for the update?
     
  7. tobias_unity

    tobias_unity

    Joined:
    Feb 3, 2018
    Posts:
    66
    I use 2018.4.28f1 and the build settings I use are attached as two images.
     

    Attached Files:

  8. tobias_unity

    tobias_unity

    Joined:
    Feb 3, 2018
    Posts:
    66
    I have been using 2018.4.8f for a long time though.
     
  9. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    Unity 2018.4.29f1 is about to be released, so have a look at release notes for Android past .8, I don't remember exactly, when we did fix cache being out of date. Look for bugs about issues after update or similar.