I just filed a bug 
here: 
http://code.google.com/p/android/issues/detail?id=69370&thanks=69370&ts=1399399984
The project that triggers the error is: 
https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Frobolectric%2Fdeckard-gradle%2Farchive%2Fmaster.zip&sa=D&sntz=1&usg=AFQjCNFX0JzAjSjnzjpbrcLtuR4reQaqGA
It looks correctly structured. There  is a build.gradle in the root folder, 
however there are no nested modules or the like. I just download the 
project, unzip, then import into A/S by pointing to the build.gradle.


On Tuesday, May 6, 2014 11:07:15 AM UTC-7, sbarta wrote:
>
> Okay, that's a bug. But looking at the code, it wouldn't have been able to 
> show a useful dependencies panel anyway because it wasn't able to find the 
> build.gradle file. How is your project structured? There must be something 
> unusual about it.
>
>
> On Tue, May 6, 2014 at 11:04 AM, Clifton Craig 
> <clifto...@gmail.com<javascript:>
> > wrote:
>
>> Interesting, I get an internal IDE error when opening the dialog:
>>
>> Error while creating dialog
>> java.lang.NullPointerException
>> at 
>> com.android.tools.idea.structure.ModuleDependenciesPanel.<init>(ModuleDependenciesPanel.java:112)
>> at 
>> com.android.tools.idea.structure.AndroidModuleEditor$5.call(AndroidModuleEditor.java:101)
>>  at 
>> com.android.tools.idea.structure.AndroidModuleEditor$5.call(AndroidModuleEditor.java:98)
>> at 
>> com.android.tools.idea.structure.GenericEditor.createComponent(GenericEditor.java:49)
>>  at 
>> com.android.tools.idea.structure.AndroidModuleEditor.getPanel(AndroidModuleEditor.java:111)
>> at 
>> com.android.tools.idea.structure.AndroidModuleConfigurable.createOptionsPanel(AndroidModuleConfigurable.java:59)
>>  at 
>> com.intellij.openapi.ui.NamedConfigurable.createComponent(NamedConfigurable.java:78)
>> at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable.selectConfigurable(AndroidProjectStructureConfigurable.java:315)
>>  at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable.selectModuleConfigurable(AndroidProjectStructureConfigurable.java:305)
>> at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable.access$600(AndroidProjectStructureConfigurable.java:73)
>>  at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable$SidePanel$2.valueChanged(AndroidProjectStructureConfigurable.java:507)
>> at javax.swing.JList.fireSelectionValueChanged(JList.java:1795)
>>  at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1809)
>> at 
>> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
>>  at 
>> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
>> at 
>> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
>>  at 
>> javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
>> at 
>> javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
>>  at 
>> javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442)
>> at javax.swing.JList.setSelectedIndex(JList.java:2209)
>>  at javax.swing.JList.setSelectedValue(JList.java:2325)
>> at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable$SidePanel.select(AndroidProjectStructureConfigurable.java:552)
>>  at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable.reset(AndroidProjectStructureConfigurable.java:251)
>> at 
>> com.intellij.openapi.options.ex.SingleConfigurableEditor.<init>(SingleConfigurableEditor.java:66)
>>  at 
>> com.intellij.openapi.options.ex.SingleConfigurableEditor.<init>(SingleConfigurableEditor.java:89)
>> at 
>> com.intellij.openapi.options.ex.SingleConfigurableEditor.<init>(SingleConfigurableEditor.java:104)
>>  at 
>> com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:253)
>> at 
>> com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:233)
>>  at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable.doShowDialog(AndroidProjectStructureConfigurable.java:112)
>> at 
>> com.android.tools.idea.gradle.structure.AndroidProjectStructureConfigurable.showDialog(AndroidProjectStructureConfigurable.java:108)
>>  at 
>> com.android.tools.idea.actions.AndroidShowStructureSettingsAction.actionPerformed(AndroidShowStructureSettingsAction.java:39)
>> at 
>> com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
>>  at 
>> com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
>> at 
>> com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:463)
>>  at 
>> com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
>> at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:493)
>>  at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
>> at 
>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
>>  at 
>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
>> at 
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
>>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
>> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
>>  at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
>>
>>
>> On Tuesday, May 6, 2014 10:04:06 AM UTC-7, sbarta wrote:
>>
>>> It's possible that it's a bug. If it's a Gradle-based module it should 
>>> always be showing you the tab (there's no selective logic there), and if 
>>> not, there could be an exception thrown while trying to instantiate it. If 
>>> you see anything interesting in the log file, please file a bug.
>>>
>>>
>>> On Tue, May 6, 2014 at 9:59 AM, Clifton Craig <clifto...@gmail.com>wrote:
>>>
>>>> Hi,
>>>>
>>>> I have noticed in some of my recent projects that Android Studio now 
>>>> includes a dependencies tab when I open my project structure. This tab 
>>>> seems to echo the configuration from the build.gradle. My question is what 
>>>> causes Android Studio to display this tab? I have 2 projects, a 
>>>> multi-module project that I built from scratch and a downloaded copy 
>>>> deckard-gradle that I'm using to understand Robolectric. wget 
>>>> https://github.com/robolectric/deckard-gradle/archive/master.zip In my 
>>>> multi-module project I see the dependencies tab. However, in the 
>>>> deckard-gradle project there is no dependencies tab. What governs the 
>>>> display of the tab? Is it a bug? I am running the latest Android Studio, 
>>>> 0.5.7 and Gradle 1.11.
>>>>  
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "adt-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to adt-dev+u...@googlegroups.com.
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to adt-dev+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to