Android 应用在 Ionic 模拟器上没有响应
Android App Not Responding on Ionic Emulator
在使用 Ionic Android 模拟器 运行 后,我的应用程序按预期显示(尽管放大得非常大,这是一个单独的问题)。但是,当我尝试单击应用程序中的按钮时,没有任何响应(例如,出现的只是应用程序的主页,我无法单击任何内容以转到登录页面)。
我在同一个模拟器上 运行 有一个模板 ionic 应用程序,它工作得很好,所以我的应用程序本身一定有问题。但是,当我 运行 'ionic serve' 以便该应用程序出现在我的浏览器中时,所有功能都可用。
有人对如何解决这个问题有任何建议吗?先感谢您。
更新:
已修复!固定它! i 运行 ionic emulate android --livereload --consolelogs --serverlogs1
,提示 i 运行 ionic plugin add cordova-plugin-statusbar
,已修复!
回答我自己的问题以防其他人将来遇到此问题:
运行:
ionic emulate android --livereload --consolelogs --serverlogs1
这将提示您 运行:
ionic plugin add cordova-plugin-statusbar
在使用 Ionic Android 模拟器 运行 后,我的应用程序按预期显示(尽管放大得非常大,这是一个单独的问题)。但是,当我尝试单击应用程序中的按钮时,没有任何响应(例如,出现的只是应用程序的主页,我无法单击任何内容以转到登录页面)。
我在同一个模拟器上 运行 有一个模板 ionic 应用程序,它工作得很好,所以我的应用程序本身一定有问题。但是,当我 运行 'ionic serve' 以便该应用程序出现在我的浏览器中时,所有功能都可用。
有人对如何解决这个问题有任何建议吗?先感谢您。
更新:
已修复!固定它! i 运行 ionic emulate android --livereload --consolelogs --serverlogs1
,提示 i 运行 ionic plugin add cordova-plugin-statusbar
,已修复!
回答我自己的问题以防其他人将来遇到此问题:
运行:
ionic emulate android --livereload --consolelogs --serverlogs1
这将提示您 运行:
ionic plugin add cordova-plugin-statusbar