英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论