AppInventor2 Runtime Error 运行时错误,无详细信息的定位技巧
编译成apk后,运行报错”Runtime Error”,但是没有任何详细信息,是什么原因?


加个这个代码块,捕获全局的错误异常,把具体错误信息输出标签查看:

如果用到了蓝牙相关功能,也将蓝牙出错信息输出标签查看:


注意: AI伴侣测试和打包apk,实际上是有一定差别的(所有编程语言都是),可能会出现测试时正常,而apk运行报错的情况。
参考
- https://community.appinventor.mit.edu/t/solving-runtime-errors/61044/44
- https://community.appinventor.mit.edu/t/apk-image-file-has-occured-runtime-error/62242
来源:AppInventor2 Runtime Error 运行时错误,无详细信息的定位技巧
本文由 App Inventor 2 中文网 整理
扫码添加客服咨询