7

I'm creating an Android app in Visual Studio. When I create the aligned APK to side load on my device (from the Tools -> Android -> Publish Android App), it installs and runs, but doesn't seem to have the very latest changes. The series of events I've experienced is as follows:

  • Installed a version of the app on my device
  • Updated a color on the login page and set the application theme (among other things)
  • Re-installed the app
  • Saw the new theme but not the new color on the login page
  • Made a random text change on the login page as a test
  • Re-installed the app
  • Saw the color change but not the random text change?!

Any suggestions on what I might be doing wrong?

Josh Russo
  • 3,080
  • 2
  • 41
  • 62
  • To ensure you're running the latest version, clean the project first :/ No idea really, might just be a weird mishap. – Shark May 05 '16 at 13:46

3 Answers3

1

I have experienced similar issues, my go to for fixing this issue has been the following

  • Clean all projects.
  • Build all projects (especially the project containing the xcml files).
  • Delete (remove application) from the device.

If for some reason this doesn't solve the problem, typically a full restart of Xamarin Studio or Visual Studio does.

Tanerax
  • 5,826
  • 5
  • 29
  • 27
  • This worked for me in Xamarin Forms. It happened to me after I pulled someone else's commit with different settings I'm guessing. – Noob17 Jul 02 '17 at 22:15
  • Deleting the application from the device is a fix but not always viable when you are sending stuff into the field. I had this problem in tech support whilst working at Realm - one of our Xamarin SDK users had an app in the field which was not updating. – Andy Dent Sep 23 '17 at 03:47
0

In my case, I had a similar problem with connected device, and no one proposed solution like Clean\Rebuild\Restart\Reinstall\etc could help me. At the same time on the AVD everything worked perfectly, latest code deployed ok.

I found that asked issue depended on selected settings in the [USB Developer] section on the connected device (mine was Xiaomi smartphone). Because some vendors provide us with too many security settings...

What I found, you have to turn on both USB Debugging & USB debugging (Security settings), and turn off MIUI Optimization (it's true for Xiaomi vendor, but you can check your device for similar options). Hope this helps.

Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
undejavue
  • 99
  • 6
0

I have a similar weird problem where old code from only a single project doesn't get updated. All other projects do get updated/deployed. It only happens on a single emulator, only in Debug mode, and only for that one project.

Cleaning+rebuilding the entire solution did not work. However, telling VS to rebuild the individual project does.

Why doesn't rebuilding the solution rebuild the project? I have no freakin' clue, but I can consistently reproduce this issue and workaround.

BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283