约束布局缺少属性(根本没有属性)

时间:2018-08-20 23:01:18

标签: layout constraints

我的约束布局有问题:当我引入一个新的按钮或文本字段或类似的内容时,会出现约束布局,但我无法更改任何属性值,包括按钮/文本/任何名称。 / p>

我对SDK Manager的位置有问题并修复了该问题(通过创建新位置并设置了它的路径),然后我对Gradle也有问题,该问题也已修复,但是现在我遇到了这个问题…

我已经放心安装了Android Studio,不是解决方案。

它看起来像这样: Picture


这是我在报告中得到的完整错误代码:

为空     java.lang.IllegalStateException         在com.android.tools.idea.uibuilder.property.EmptyProperty.getModel(EmptyProperty.java:106)         在com.android.tools.idea.uibuilder.property.editors.BrowsePanel.getBrowser(BrowsePanel.java:224)         在com.android.tools.idea.uibuilder.property.editors.BrowsePanel.showBrowseDialog(BrowsePanel.java:208)         在com.android.tools.idea.uibuilder.property.editors.BrowsePanel $ BrowseAction.actionPerformed(BrowsePanel.java:175)         在com.intellij.openapi.actionSystem.ex.ActionUtil $ 1.run(ActionUtil.java:220)         在com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)         在com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:195)         在com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:153)         在com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:346)         在java.awt.Component.processEvent(Component.java:6306)         在java.awt.Container.processEvent(Container.java:2237)         在java.awt.Component.dispatchEventImpl(Component.java:4897)         在java.awt.Container.dispatchEventImpl(Container.java:2295)         在java.awt.Component.dispatchEvent(Component.java:4719)         在java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)         在java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)         在java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)         在java.awt.Container.dispatchEventImpl(Container.java:2281)         在java.awt.Window.dispatchEventImpl(Window.java:2746)         在java.awt.Component.dispatchEvent(Component.java:4719)         在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)         在java.awt.EventQueue.access $ 500(EventQueue.java:98)         在java.awt.EventQueue $ 3.run(EventQueue.java:715)         在java.awt.EventQueue $ 3.run(EventQueue.java:709)         在java.security.AccessController.doPrivileged(本机方法)         在java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)         在java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)         在java.awt.EventQueue $ 4.run(EventQueue.java:737)         在java.awt.EventQueue $ 4.run(EventQueue.java:735)         在java.security.AccessController.doPrivileged(本机方法)         在java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)         在java.awt.EventQueue.dispatchEvent(EventQueue.java:734)         在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)         在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)         在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)         在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)         在java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)         在java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)         在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)         在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)         在java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

java.lang.IllegalStateException
    at com.android.tools.idea.uibuilder.property.EmptyProperty.getModel(EmptyProperty.java:106)
    at com.android.tools.idea.uibuilder.property.editors.BrowsePanel.getBrowser(BrowsePanel.java:224)
    at com.android.tools.idea.uibuilder.property.editors.BrowsePanel.showBrowseDialog(BrowsePanel.java:208)
    at com.android.tools.idea.uibuilder.property.editors.BrowsePanel$BrowseAction.actionPerformed(BrowsePanel.java:175)
    at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
    at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:195)
    at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:153)
    at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:346)
    at java.awt.Component.processEvent(Component.java:6306)
    at java.awt.Container.processEvent(Container.java:2237)
    at java.awt.Component.dispatchEventImpl(Component.java:4897)
    at java.awt.Container.dispatchEventImpl(Container.java:2295)
    at java.awt.Component.dispatchEvent(Component.java:4719)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
    at java.awt.Container.dispatchEventImpl(Container.java:2281)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4719)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
    at java.awt.EventQueue$4.run(EventQueue.java:737)
    at java.awt.EventQueue$4.run(EventQueue.java:735)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

请帮助 谢谢

0 个答案:

没有答案