After using the command ionic cap add android i changed my code in vscode but now there is no change in the apk i download from android stdudio

huangapple go评论66阅读模式
英文:

After using the command ionic cap add android i changed my code in vscode but now there is no change in the apk i download from android stdudio

问题

我在终端运行命令后,从 Android Studio 打开了应用程序,并生成了 APK。然后,我在 VS Code 中进行了一些更改,通过 Ionic 服务器在浏览器中反映出这些更改。但是,现在在 VS Code 中进行了更改后,如果我再次从 Android Studio 下载 APK,这些更改不会反映出来。我已尝试关闭 Android Studio 并再次运行命令 ionic cap add android

英文:

after running the command from terminal i opened the android studio from where i generated the apk
now i made some changes in the vs code which were reflected in the browser by using the ionic server
but now after making the changes in the code in vscode if i download the apk from android studio again it is not reflecting the changes

i have tried closing android studio and again using the command
ionic cap add android

答案1

得分: 2

需要将您的IDE/项目中的更改与Android Studio同步。运行以下命令:

 ionic build
 npx cap sync
 npx cap copy
 npx cap open android
英文:

You need to sync your changes in your IDE/project with Android Studio. Run the following commands:

 ionic build
 npx cap sync
 npx cap copy
 npx cap open android

huangapple
  • 本文由 发表于 2023年5月15日 01:28:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76248825.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定