![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android报错
山枝子
这个作者很懒,什么都没留下…
展开
-
报错:UnsatisfiedLinkError: Couldn't load serial_port from loader dalvik.system.PathClassLoader......
1.背景 最近在研究Android串口通信,把Google提供的库(android-serialport-api)集成一个module使用,结果因为不熟悉jni这方面的知识导致出了这个错。 最开始在网上找解决方法,偏偏网上的都是导入so文件使用时出错,我这个却是直接在module中使用c文件。 后来在检查代码和配置文件时发现了,原来是声明库的名称和调用库的名称不一致导致的,要被自己蠢哭了。 ...原创 2019-12-06 15:07:54 · 511 阅读 · 0 评论 -
Android报错:android.view.InflateException: Binary XML file line #0: Error inflating class TextView
报错信息:android.view.InflateException: Binary XML file line #0: Error inflating class TextView 原因:资源文件shape_new_message.xml在drawable-v24文件夹下,而不在drawable文件夹下 解决办法:将资源文件shape_new_message原创 2017-11-14 13:50:30 · 25761 阅读 · 5 评论 -
报错:[Banner] The number of titles and images is different
使用的是第三方库https://github.com/youth5201314/banner 原因:设置了banner的样式为CIRCLE_INDICATOR_TITLE,却没有为banner设置title或者设置的title和image的数量不一致 // 设置banner样式 banner.setBannerStyle(BannerConfig.CIRCLE_INDICATOR_TITLE...原创 2019-09-05 19:00:25 · 1135 阅读 · 1 评论