Android Studio is installing old apk on device

后端 未结 10 1592
忘了有多久
忘了有多久 2020-12-08 10:59

I am developing an Android app using Android Studio (0.89 Build #AI-135.1404660, Built on Sept 3,2014) using both emulator and Nexus 4 device.

I had the same issue w

相关标签:
10条回答
  • 2020-12-08 11:45

    Check Your Layout Files.

    I ran into the same problem and I realized, it gives some problem if you have same layout in multiple orientations(portrait and landscape). If one is changed other remains unchanged and then it creates a conflict. So android studio installs the one with the previous layout

    PS: This was happening in my case.

    0 讨论(0)
  • 2020-12-08 11:48

    Google thinks it is a feature, not a bug

    https://code.google.com/p/android/issues/detail?id=156263

    Their proposed solution is to copy the apk(s) instead of manipulating the filename, as in e.g.

    Copying APK file in Android Gradle project

    0 讨论(0)
  • 2020-12-08 11:54

    I've spent way too many hours to keep this to myself. The way I fixed it was that I noticed some hours later that I was using different layout version in res/ .... I have actually two versions of layout (layout-v26) and (layout). All this time I was modifying the other one and uploading different one. Maybe its just a newbie mistake but I hope somebody will find it useful.

    The reason why there are 2 version was because of " autofillHints="" -> quickfix -> create new version of layout "

    image of my tree

    0 讨论(0)
  • 2020-12-08 11:55

    Run / Debug Configurations / Miscellaneous TAB [] Uncheck: Skip installation if APK has not changed

    Android Studio doesn't always detect small changes in code.

    0 讨论(0)
提交回复
热议问题