错误记录
日常报错解决记录
JetoXiao
九层之塔,始于垒土
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android databinding xml 字符串拼接
<?xml version="1.0" encoding="utf-8"?><layout> <data> <variable name="bean" type="x.x.x.ListBean" /> </data> <LinearLayou...原创 2019-11-14 16:54:00 · 4539 阅读 · 0 评论 -
Process 'command 'D:\SDK\ndk-bundle/ndk-build.cmd'' finished with non-zero exit value 2
从AndroidStudio直接的ndk版本过高,换成ndk_r10e就不会报这个错误了,这个亲测可以解决这个问题。网上也有说降级到14,15也能解决,还待测试。下载地址:ndk_r10e(Jan 2015)Windows32-bit : http://dl.google.com/android/ndk/android-ndk-r10e-windows-x86.exeWindo...原创 2019-08-22 18:49:25 · 1915 阅读 · 1 评论 -
java.lang.UnsatisfiedLinkError: "lib_xxx.so" is 32-bit instead of 64-bit
在导入so文件时出现:java.lang.UnsatisfiedLinkError: dlopen failed: "lib_xxx.so" is 32-bit instead of 64-bit解决:1.在build.gradle中加上defaultConfig { ...... ndk { abiFilters "armeabi", "armeabi-...原创 2019-07-18 13:51:55 · 688 阅读 · 0 评论 -
at android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:387)
解决Webview在设置放大缩小功能后,android.widget.ZoomButtonsController错误原因是Activity销毁后,缩放图标没来得及隐藏,导致android.app.IntentReceiverLeaked错误解决方法:@Overrideprotected void onDestroy() { ViewGroup view = (ViewGr...原创 2019-06-24 09:56:51 · 265 阅读 · 0 评论 -
Android GridView属性
属性名称 描述 android:background 设置背景色/背景图片。可以通过以下两种方法设置背景为透明:”@android:color/transparent”和”@null”。注意TextView默认是透明的,不用写此属性,但是Buttom/ImageButton/ImageView想透明的话就得写这个属性了。 android:clickable 是否响应点击事...转载 2016-03-29 10:44:25 · 2103 阅读 · 0 评论 -
error: style attribute 'attr/colorPrimary (aka com.ab.activity:attr/colorPrimary)' not found.
compileSdkVersion 修改为28添加如下依赖implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'implementation 'androidx.constraintlayout:constraintlayout:1.1.2'原创 2019-05-31 16:18:50 · 15734 阅读 · 3 评论 -
Try supplying a main-dex list. # methods: 65812 > 65536
Cannot fit requested classes in a single dex file. Try supplying a main-dex list. # methods: 65812 > 65536项目里单个dex文件的函数超过了65536个配置即可efaultConfig { multiDexEnabled true}...原创 2019-06-05 16:53:17 · 273 阅读 · 0 评论 -
Android开发中使用dos命令连接外接设备device运行android项目
此次项目开发中,使用阿里的电视盒子以及一台TCL电视显示器作为外接设备来作为调试设备。那么,如何在Eclipse中找到该device呢,可以使用dos命令完成该项连接,从而使用电视显示器作为你的android调试设备。此时在eclipse中是无法看到该设备的。打开dos界面该项说明adb没有找到,我们可以通过访问安装目录来找到adb,在eclipse的sdk原创 2016-03-09 14:41:30 · 2168 阅读 · 0 评论 -
daemon not running. starting it now on port 5037 ADB server didn't ACK 解决5037端口被其他进程所占用
5037端口被占用,试了很多种方法都无法解决,给android开发带来了很大的麻烦windows系统 配置环境变量 :变量名:ANDROID_ADB_SERVER_PORT原创 2016-03-25 10:55:51 · 1263 阅读 · 0 评论
分享