打开Asset Studio创建图像资产时出错

时间:2019-12-30 21:39:52

标签: java android-studio

尝试打开Asset Studio从android/app/res -> right mouse click -> new/Image Asset创建图像资产时出现错误。

  

java.lang.NullPointerException       在com.android.tools.idea.configurations.ConfigurationManager.create(ConfigurationManager.java:165)       在com.android.tools.idea.configurations.ConfigurationManager.getConfiguration(ConfigurationManager.java:142)       在com.android.tools.idea.editors.theme.ThemeEditorUtils.getConfigurationForModule(ThemeEditorUtils.java:523)       在com.android.tools.idea.npw.assetstudio.DrawableRenderer。(DrawableRenderer.java:72)       在com.android.tools.idea.npw.assetstudio.wizard.GenerateImageAssetPanel。(GenerateImageAssetPanel.java:216)       在com.android.tools.idea.npw.assetstudio.wizard.NewImageAssetStep。(NewImageAssetStep.java:39)       在com.android.tools.idea.actions.NewImageAssetAction.createWizard(NewImageAssetAction.kt:33)       在com.android.tools.idea.actions.AndroidAssetStudioAction.actionPerformed(AndroidAssetStudioAction.java:108)       在com.intellij.openapi.actionSystem.ex.ActionUtil $ 1.run(ActionUtil.java:261)       在com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:278)       在com.intellij.openapi.actionSystem.impl.ActionMenuItem $ ActionTransmitter.lambda $ actionPerformed $ 0(ActionMenuItem.java:292)       在com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:283)       在com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:107)       在com.intellij.openapi.actionSystem.impl.ActionMenuItem $ ActionTransmitter.actionPerformed(ActionMenuItem.java:282)       在javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)       在com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda $ fireActionPerformed $ 0(ActionMenuItem.java:111)       在com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)       在com.intellij.openapi.application.TransactionGuardImpl.lambda $ submitTransaction $ 1(TransactionGuardImpl.java:111)       在com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)       在com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:121)       在com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:111)       在com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:524)       在com.intellij.ui.plaf.beg.BegMenuItemUI.access $ 300(BegMenuItemUI.java:35)       在com.intellij.ui.plaf.beg.BegMenuItemUI $ MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:546)       在java.awt.Component.processMouseEvent(Component.java:6550)       在javax.swing.JComponent.processMouseEvent(JComponent.java:3325)       在java.awt.Component.processEvent(Component.java:6315)       在java.awt.Container.processEvent(Container.java:2239)       在java.awt.Component.dispatchEventImpl(Component.java:4899)       在java.awt.Container.dispatchEventImpl(Container.java:2297)       在java.awt.Component.dispatchEvent(Component.java:4721)       在java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)       在java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)       在java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)       在java.awt.Container.dispatchEventImpl(Container.java:2283)       在java.awt.Window.dispatchEventImpl(Window.java:2746)       在java.awt.Component.dispatchEvent(Component.java:4721)       在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766)       在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:74)       在java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)       在java.awt.EventQueue $ 4.run(EventQueue.java:739)       在java.awt.EventQueue $ 4.run(EventQueue.java:737)       在java.security.AccessController.doPrivileged(本机方法)       在java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)       在java.awt.EventQueue.dispatchEvent(EventQueue.java:736)       在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:757)       在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:702)       在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:375)       在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)       在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)

关于我们应该做什么的任何想法?

0 个答案:

没有答案