android 常见错误

来源:互联网 发布:javascript插件编写 编辑:程序博客网 时间:2024/05/16 02:10

当xml布局文件报 "Failed to find style 'textViewStyle' in current theme" 这个错误的时候  

解决方法:在layout的预览界面修改theme的选项即可。

参考:http://blog.csdn.net/romaticxiaoyu/article/details/7241512


The connection to adb is down, and a severe error has occured.

cmd进sdk-tools目录,查看是否有adb,然后adb kill-server,然后再adb start-server。。。


WebView调用addJavaScriptInterface()无效解决方法:

android与html交互的时候,在api level是16+的时候会无效;只要

在Javascript Bridge对象下的所有回调方法使用 @JavascriptInterface 进行注解声明即可解决。