安卓预览报错 Failed to load AppCompat ActionBar with unknown error
报错信息 :
Render Problem
Failed to load AppCompat ActionBar with unknown error.
Failed to instantiate one or more classes The following classes could not be instantiated: android.support.v7.widget.AppCompatImageView (Open Class, Show Exception, Clear Cache) - android.support.v7.widget.Toolbar (Open Class, Show Exception, Clear Cache) - android.support.v7.widget.AppCompatTextView (Open Class, Show Exception, Clear Cache) - android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache) - android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache) - android.support.v7.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache)
解决方案:
1: try going to the build.gradle(module:app) file in your project, over there, change the following things:
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support:design:28.0.0-alpha3'
to:
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support:design:28.0.0-alpha1
2:同步之后,Invalid Caches/Restart
最新文章
- 【USACO 3.2】Factorials(阶层非零尾数)
- ORACLE临时表总结
- redis3.2 最新版本启动配置文件redis.conf详细说明
- 【转载】LoadRunner添加windows多台压力机
- vim 查找时忽略大小写
- poj 3321:Apple Tree(树状数组,提高题)
- spring aop搭建redis缓存
- 编程中、遇到问题、bug多思考
- zabbix配置发送报警邮件
- 工作流学习——Activiti流程实例、任务管理四步曲 (zhuan)
- varnish 4.0编译安装小记
- Quick Sort In-place Implementation
- ASP.NET学习笔记——ASP.NET应用程序
- Bootstrap登录样式
- Python爬虫Dota排行榜爬取
- windows平台下cocos2d-x-3.0beta2创建新项目
- redis简单测试用例(内存不足,可以使用redis)
- poj 1664 放苹果(递推)
- Pandas数据规整
- [Fiddler] The connection to &#39;xxxxx.com&#39; failed. <;br />;System.Security.SecurityException Failed to negotiate HTTPS connection with server.fiddler.network.https&;gt; HTTPS handshake to intelte
热门文章
- [日常] 搭建golang开发环境
- iOS交互h5——user-agent
- SSM配置JDBC错误: cquisition Attempt Failed!!!
- O(∩_∩)O~~
- 微软正式开源Blazor,将.NET带回到浏览器
- 【 js 片段 】点击空白或者页面其他地方,关闭弹框
- python3中的新式类mro查看和C3算法原理
- 关于j使用ava匿名类的好处总结
- 前端AMD、CMD和commonJs-前端知识
- <;Android 基础(二十九)>; Fragment (2) ~ DialogFragment