- Caused by: org.litepal.exceptions.InvalidAttributesException: dbname is empty or not defined in litepal. file
assets 目录下的 litepal 忘了加后缀
- \'android.view.Window$Callback android.view.Window.getCallback()\' on a null reference
findViewById 不能在 setContentView(R.layout.activity_main) 的前面
-
Recyclerview 子项间距差了一个 match_parent 距离
Recyclerview 的 item 视图时,把 layout_height 写成 match_parent
- listview 滚动时顶部不能填充
添加配置android:clipToPadding=\"false\"
参考: https://blog.csdn.net/litefish/article/details/52471273
- java.lang.NullPointerException: Attempt to get length of null array
添加读写SD卡的权限, 另外记得权限申请需要放在读写操作之前
<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEM\"/>
<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>
- 编译不通过
添加其他仓库
allprojects {
repositories {
jcenter()
maven {
url \"https://maven.google.com\"
}
google()
mavenCentral()
mavenLocal()
}
} 继续阅读与本文标签相同的文章
上一篇 :
拼图滑块验证
-
华为网络:强交互式舒适级VR体验需要540M宽带
2026-05-19栏目: 教程
-
缙云“人才·科技”峰会人才项目路演成功举行
2026-05-19栏目: 教程
-
谷歌发布Nest mini音箱:音质增强 售价49美元
2026-05-19栏目: 教程
-
微信转账还能换颜色?好友都懵了!
2026-05-19栏目: 教程
-
为何许多学生都用QQ,而步入社会后就变成了微信?理由让人泪目
2026-05-19栏目: 教程
