We should support simple project with no sub modules though.

On Tue, May 6, 2014 at 11:28 AM, Clifton Craig <[email protected]>wrote:

> Looking a little closer and I see what you mean. I suppose Android studio
> wants the module nested in a folder with a settings.gradle and top level
> build.gradle and all. I can make this structure manually and try again.
>
>
> 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 <[email protected]>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(AndroidProjectStructureConfigu
>>> rable.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.AndroidShowStructureSettingsAc
>>> tion.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 <[email protected]>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 [email protected].
>>>>>
>>>>> 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 [email protected].
>>> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to