Xamarin Android deployment not using latest code?

I am creating an Android application in Visual Studio. When I create a aligned APK for side loading on my device (from the menu "Tools β†’ Android β†’ Publish Android Application"), it installs and runs, but does not seem to have the most recent changes. The series of events that I experienced is as follows:

  • Installed version of the application on my device
  • Updated color on login page and set application theme (among other things)
  • Reinstall the application
  • We chose a new theme, but not a new color on the login page.
  • Made a random change to the text on the login page as a test
  • Reinstall the application
  • Seen a color change, but not an accidental change in text ?!

Any suggestions on what I might be doing wrong?

+6
source share
3 answers

I am having similar problems and am fixing this problem:

  • Clear all projects.
  • Create all projects (especially a project containing xcml files).
  • Delete (remove the application) from the device.

If for some reason this does not solve the problem, a full restart of Xamarin Studio or Visual Studio is usually performed.

+1
source

The problem is resolved after performing the following steps:

  • update Xamarin.Forms to version 2.3.3.193
  • uninstall Java SE version 7
  • install Java SE version 8
  • Install Xamarin> Java Development Kit Location to the new Java SE version. (see screenshot)
  • PC reboot

enter image description here

0
source

In my case, I had a similar problem with the connected device, and not a single proposed solution, such as Clean \ Rebuild \ Restart \ Reinstall \ etc, could help me. At the same time, everything worked perfectly on AVD, the last code was deployed normally.

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

What I found, you need to enable both USB Debugging and USB debugging (security settings) , and disable MIUI Optimization (this is true for the Xiaomi provider, but you can check your device for similar parameters). Hope this helps.

0
source

All Articles