
Android报错
Angus博客
知足长乐,助人为乐,自得其乐。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android WebView在JS交互下上传Base64报错:Uncaught SyntaxError: Unexpected token
这样的情况一般都是BASE64过大造成的,解决方法:方式一:如果没有硬性要求可以继续压缩图片然后再次BASE64处理方式二:修改代码 Base64.DEFAULT为NO-WRAP解决/** * 图片转成string * * @param bitmap * @return */ public static String convertIco...原创 2018-03-15 16:15:27 · 3381 阅读 · 1 评论 -
解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
这个问题是Android studio升级到3.0之后,运行的时候会提示gradle要升级到3.5版本才能编译。于是我把我的gradle升级到了 gradle-4.1-milestone-1 版本,是2017年7月份最新版本了。于是我把主程序的build.gradle中的gradle版本改成了这个,具体指定哪个版本我也不知道,于是就写了个3.0+ dependencies { cla...转载 2018-03-09 23:37:44 · 399 阅读 · 0 评论 -
Android报错:Error:found unexpected optical bounds (red pixel) on top border at x=106.
更新到Android Studio 3.0后 会出现;Error:found unexpected optical bounds (red pixel) on top border at x=106.在gradle.properties文件下设置;android:enableAapt2 = false引入;https://stackoverflow.com/questions/46947178/b...原创 2018-03-10 00:16:45 · 3317 阅读 · 0 评论 -
Android异常解决--A WebView method was called on thread 'JavaBridge'. All WebView methods must be called
Android异常解决--A WebView method was called on thread 'JavaBridge'. All WebView methods must be called android端调用js. 使用webView.loadUrl("javascript: alert(" + data +")"); 出现异常.异常log如下:[html] view plain co...转载 2018-03-14 12:47:07 · 2269 阅读 · 0 评论