确定主要内容
1、当发现什么问题都不报错,但是模拟器就是显示不出来的时候
清空一下项目缓存


2、URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
解决:博客
3、Suggestion: use a compatible library with a minSdk of at most 15,
or increase this project's minSdk version to at least 16,
or use tools:overrideLibrary="com.scwang.smart.refresh.layout.kernel" to force usage (may lead to runtime failures)

4、android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.
5、Session ‘app’: Installation did not succeed. The application could not be installed.
6、java.lang.NullPointerException: Attempt to invoke virtual method ‘void androidx.recyclerview.widget.RecyclerView.setAdapter(androidx.recyclerview.widget.RecyclerView$Adapter)’ on a null object reference
报了空指针的错(最后发现是组件id名字在多个布局文件中重名了。。。)
不要问,问就是很后fei…
博客传送门
解决措施: 找到本来对应的组件,把id名字改一下就好了。

7、INSTALL_FAILED_MISSING_SHARED_LIBRARY问题
库下载不成功

更新中。。。
本文列举了Android开发中遇到的一些典型问题及解决方法,包括项目缓存清理、URI注册错误、兼容性问题、找不到活动类、安装失败、空指针异常以及缺失共享库的问题。针对这些问题,提供了相应的博客链接和解决建议,如调整minSdk版本、检查组件ID重复等。

1060

被折叠的 条评论
为什么被折叠?



