无法加载 AppCompat ActionBar,错误未知.Android Studio 3.1.3 [英] Failed to load AppCompat ActionBar with unknown error.Android Studio 3.1.3

查看:23
本文介绍了无法加载 AppCompat ActionBar,错误未知.Android Studio 3.1.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用 Android Studio,我不知道这些错误是什么意思,或者它们在此处输入图像描述的含义

This was my first time using Android studio and I dont know what are those errors mean or what they implyenter image description here

[渲染问题无法加载 AppCompat ActionBar,出现未知错误.ConstraintLayout 中缺少约束

[Render Problem Failed to load AppCompat ActionBar with unknown error. Missing Constraints in ConstraintLayout

此视图不受限制.它只有设计时的位置,所以它会在运行时跳转到 (0,0) 除非你添加约束.这些属性不会在运行时应用,因此如果您在设备上推送布局,小部件可能会出现在与编辑器中显示不同的位置.要解决此问题,请通过从边缘连接处拖动来确保小部件具有水平和垂直约束.]

This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints The layout editor allows you to place widgets anywhere on the canvas, and it records the current position with designtime attributes (such as layout_editor_absoluteX). These attributes are not applied at runtime, so if you push your layout on a device, the widgets may appear in a different location than shown in the editor. To fix this, make sure a widget has both horizontal and vertical constraints by dragging from the edge connections.]

推荐答案

请将com.android.support:appcompat-v7:28.0.0-alpha3改为com.android.supportbuild.gradle(Module: App) 中的:appcompat-v7:28.0.0-alpha1.

Please change com.android.support:appcompat-v7:28.0.0-alpha3 to com.android.support:appcompat-v7:28.0.0-alpha1 in build.gradle(Module: App).

然后点击 File -> Invalidate Caches/Restart

And click File -> Invalidate Caches / Restart

当然,您需要访问互联网.

Of course you need internet access.

com.android.support:appcompat-v7:28.0.0-alpha3 中似乎有一个错误

这篇关于无法加载 AppCompat ActionBar,错误未知.Android Studio 3.1.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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