如何解决“无法实例化以下类的呈现问题"? [英] How to fix "Rendering Problems The following classes could not be instantiated"?

查看:52
本文介绍了如何解决“无法实例化以下类的呈现问题"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始学习android编码,并且不断收到此错误:

I just started learning android coding and I keep getting this error:

推荐答案

在build.gradle中添加这些支持库,并确保支持库的版本(转到sdk管理器并获取sdk平台的版本号并将其放置低于依赖性,因为支持库和sdk平台的版本应匹配)

Add these support library in build.gradle and also make sure the version of the support library(goto sdk manager and get the version number of sdk platform and place it in below dependancy because version of support library and sdk platform should be matched)

compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'

这篇关于如何解决“无法实例化以下类的呈现问题"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆