使用Android studio导入gradle项目时出错

时间:2013-07-01 14:40:39

标签: intellij-idea android-studio gradle

我在使用Android Studio导入gradle项目时遇到问题。我选择我的应用程序的文件夹,然后选择“import project for external_model”当我点击下一步时,我在我的控制台中发生了错误。这就是追踪:

ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(1084,751),absolute(1685,1041),button=1,modifiers=Button1,clickCount=1] on dialog0 
java.lang.IllegalStateException: @NotNull method com/intellij/openapi/externalSystem/model/settings/LocationSettingType.getColor must not return null
    at com.intellij.openapi.externalSystem.model.settings.LocationSettingType.getColor(LocationSettingType.java:54)
    at org.jetbrains.plugins.gradle.service.settings.GradleProjectSettingsControl.deduceGradleHomeIfPossible(GradleProjectSettingsControl.java:279)
    at org.jetbrains.plugins.gradle.service.settings.GradleProjectSettingsControl.resetExtraSettings(GradleProjectSettingsControl.java:236)
    at com.intellij.openapi.externalSystem.service.settings.AbstractExternalProjectSettingsControl.reset(AbstractExternalProjectSettingsControl.java:65)
    at com.intellij.openapi.externalSystem.service.settings.AbstractImportFromExternalSystemControl.reset(AbstractImportFromExternalSystemControl.java:153)
    at com.intellij.openapi.externalSystem.service.project.wizard.AbstractExternalProjectImportBuilder.prepare(AbstractExternalProjectImportBuilder.java:107)
    at com.intellij.openapi.externalSystem.service.project.wizard.SelectExternalProjectStepBase.initGradleSettingsControl(SelectExternalProjectStepBase.java:90)
    at com.intellij.openapi.externalSystem.service.project.wizard.SelectExternalProjectStepBase.updateStep(SelectExternalProjectStepBase.java:44)
    at com.intellij.ide.util.newProjectWizard.AddModuleWizard.updateStep(AddModuleWizard.java:172)
    at com.intellij.ide.wizard.AbstractWizard.doNextAction(AbstractWizard.java:377)
    at com.intellij.ide.util.newProjectWizard.AddModuleWizard.doNextAction(AddModuleWizard.java:241)
    at com.intellij.ide.wizard.AbstractWizard$5.actionPerformed(AbstractWizard.java:197)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

我尝试重新安装Android Studio,更新它(0.1.1,0.1.7,0.1.8版本)并始终出现相同的错误。 我在Ubuntu 12.04 LTS上,我的JDK版本是1.6.0_26 我还尝试安装gradle 1.6并将bin文件夹添加到我的路径中,但它不起作用。

0 个答案:

没有答案