[英]Problem with rendering, how can I solve it?
I have a problem with the preview of my app. 我的应用预览有问题。
In the log file i have a few errors : 在日志文件中我有一些错误:
This is a group project but I am the only one encountering this problem. 这是一个小组项目,但我是遇到这个问题的唯一一个。 I just downloaded Android Studio so I did not touch anything in the settings.
我刚刚下载了Android Studio,因此我没有在设置中触摸任何内容。
Any idea? 任何想法?
在build.gradle
添加约束布局依赖build.gradle
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
Just click the blue text that prompt in your console 只需单击控制台中提示的蓝色文本即可
or try to add these into your gradle (app level) 或尝试将这些添加到您的gradle(应用程序级别)
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
And you can update them to latest version if Android Studio tells you there's a new version. 如果Android Studio告诉您有新版本,您可以将它们更新到最新版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.