- 博客(9)
- 收藏
- 关注
原创 gradlew报错:Android Gradle plugin requires Java 11 to run
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8
2023-02-21 14:50:45
1118
原创 AS升级后,GreenDao报错
First problem: Pb(324) The type java.lang.Object cannot be resolved
2023-02-20 15:53:39
584
原创 Android运行报错 Cause: duplicate entry: META-INF/MANIFEST.MF
解决:修改‘appcompat-v7’版本
2022-06-27 16:12:36
952
原创 Android 根据FFD8 FFD9获取图片
byte数组中包含jpeg数据,以FFD8开始、FFD9结束,查找标记位置,转换bitmap private byte[] tagStartBytes = hexStringToBytes("FFD8"); private byte[] tagEndBytes = hexStringToBytes("FFD9"); private Bitmap getBitmap(byte[] originBytes) { int startIndex = 0; .
2022-03-14 10:33:27
10424
原创 Android串口通信
情况:定制设备,灯光板串口通信参考:Android开发之串口通信:AndroidSerialPort - 简书依赖:implementation 'com.aill:AndroidSerialPort:1.0.8'使用:public class SerialManager { //串口命令示例 private final String CMD_LIGHT_OPEN = "6a610111"; private final String CMD_LIGHT_CL.
2022-03-09 11:19:59
8336
2
原创 Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class com.google.android.material.bottomnavigation.BottomNavigationViewCaused by: java.lang.reflect.InvocationTargetExceptionCaused by: java.lang.IllegalArgumentExceptio
2021-09-02 10:57:34
2092
原创 android studio adb无法启动,且5037端口没有被占用
参考:https://blog.youkuaiyun.com/wuyoudeyuer/article/details/107151339报错:Unable to create Debug Bridge: Unable to start adb server: * daemon not running; starting now at tcp:5037Process did not terminate within specified timeout, killing it'D:\Android\sdk\plat
2021-08-31 21:25:36
1256
原创 关于eclipse-logcat不单独打印项目日志的经验
1. 本人碰到的问题:真机运行项目时logcat不打印日志,但其他项目可以正常打印。2.解决思路打开ApplicationManifest.xml文件查看代码,发现application属性中有 “android:debuggable="false"” ,去掉之后 重新运行程序,可以了
2017-07-11 09:45:15
434
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人