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

查看:106
本文介绍了无法加载未知错误的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)布局编辑器允许您将小部件放置在画布上的任何位置,并且它记录具有设计时属性的当前位置(例如layout_editor_absoluteX) .这些属性不会在运行时应用,因此,如果您在设备上推送布局,则小部件可能会出现在与编辑器所示位置不同的位置.要解决此问题,请通过从边缘连接处拖动来确保小部件同时具有水平和垂直约束.]

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.]

推荐答案

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

然后单击文件->使缓存无效/重新启动

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天全站免登陆