-
I have made a simple code which I give you below
Later I have updated this
Both worked fine in developer mode. I have installed the first code using "briefcase run android" using USB. It worked, but later when I updated the code and installed the same, it did not work. I have tried "briefcase update", "briefcase run -u", I have uninstalled the App and then tried to reinstall from the beginning. I still got the App which is stuck with the old code and new code functions are not getting updated. Can someone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You'll have to clarify what you mean by "does not work". The ticket title suggests that you think the issue is that the code isn't being updated - is that actually the problem you're seeing? Are you getting an error? If so, what is it? If you're not seeing an error, just not seeing changes being reflect - How are you establishing that the code isn't being updated? Are you certain that you've saved the file locally? Can you provide a build log (add |
Beta Was this translation helpful? Give feedback.
-
I have tried myself several possibilities and found a weird temporary solution to my problem. I have deleted the directory "android" which is situated in "PROJECT FOLDER/APP NAME FOLDER/build/APP NAME FOLDER" and then when I built the apk file and tested it. This time the code is actually getting updated. I have also tried deleting only the apk file which was situated in "PROJECT FOLDER/APP NAME FOLDER/build/APP NAME FOLDER/android/gradle/app/build/outputs/apk/debug", which did not actually update the code. But deleting the entire directory of 'android' did the trick. Still this is not the correct solution, but my app works now. I once again thank @freakboy3742 for his reply. |
Beta Was this translation helpful? Give feedback.
Just in case this is useful, when you run the
briefcase update
command or use the-u
flag, you'll still need to specify the relevant platform. In this case,briefcase update android
andbriefcase run android -u
. Otherwise, the Briefcase command will run for the platform of the host machine, Windows in this case, instead of Android.