[英]Ionic 4 project - Android studio & ADB doesn't update with changes in code
I have an Ionic 4 mobile app project and have been previously been testing with with ADB with Android Studio.我有一个 Ionic 4 移动应用程序项目,之前一直在使用 ADB 和 Android Studio 进行测试。 I can successfully run/build and install onto my android device.
我可以成功运行/构建并安装到我的 android 设备上。 However, no changes I make in the code take affect when I view the app on my device.
但是,当我在设备上查看应用程序时,我在代码中所做的任何更改都不会生效。
This link was the closest I could find to my issue: Android studios doesn't update app on mobile device 't-update-app-on-mobile-device/38919601此链接是我能找到的最接近我的问题的链接: Android studios 不会更新移动设备上的应用程序't-update-app-on-mobile-device/38919601
I have tried to Build > Clean Project in Android Studio but it hasn't worked for me.我曾尝试在 Android Studio 中构建 > 清理项目,但它对我不起作用。
This is my first question on here so any tips on how to improve my ability to ask would be much appreciated :)这是我在这里的第一个问题,因此非常感谢有关如何提高我提问能力的任何提示:)
Your suggested link having a solution.您建议的链接有解决方案。 Try Re-build the Gradle.
尝试重新构建 Gradle。 Do
build->Rebuild project
then run it.做
build->Rebuild project
然后运行它。
To be sure you are on right project :).确保您在正确的项目中:)。
我需要在运行npx cap add android
和npx cap open android
之前运行一个ionic build
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.