Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio won't install a new APK - old one won't go away on phone

My app won't update. It builds and runs but it's some old version and the changes I've made aren't counted. If I make a Toast for example, it won't show. If I delete an existing one, it will still show.

I've tried the following already:

  • Updating Android Studio and updates in the SDK manager

  • uninstalling the app off my phone and reinstalling

  • cleaning

  • make sure "Gradle-aware Make" is in run configurations

  • File - invalidate caches

  • make sure "Skip installation" is unticked.

  • delete the build folder of the project and rebuilt

  • adb shell pm clear com.packagename.app - "Success" but not fixed

  • adb shell uninstall com.packagename.app - "Success" but not fixed

  • Increase versionCode and versionName in build.gradle

  • Change build variant

  • Making a new project and copying the files

  • Android Studio is installing old apk on device

I've tried doing it on another phone and it's stuck on an older version on that one too.

like image 242
Questioner Avatar asked Oct 20 '25 13:10

Questioner


1 Answers

I had a similar problem with AndroidStudio Canary 2020.3.1 Canary 2.

In my case it helped to check Run/Debug Configurations/Always install with package manager.

(I might have missed some simple reason for this behaviour, though.)

like image 64
aaron Avatar answered Oct 22 '25 04:10

aaron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!