android - Error when creating project in AndroidStudio -


whenever try make new project in android, error

failed import gradle project: not fetch model of type 'ideaproject' using gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.        build file 'c:\users\vvina_000\androidstudioprojects\myapplicationproject\myapplication\build.gradle' line: 9        problem occurred evaluating project ':myapplication'.        problem occurred evaluating project ':myapplication'.        not create plugin of type 'appplugin'.        com.google.common.collect.maps        consult ide log more details (help | show log)        

i opened build.gradle file , says is:
// top-level build file can add configuration options common sub-projects/modules", there no line 9.

had same problem recently. solution remove gradle , reset androidstudio: (osx mountain lion)

  1. show hidden files
    execute in terminal: defaults write com.apple.finder appleshowallfiles yes restart finder (option+rightclick on finder > relaunch)
  2. delete gradle files:
    ~/.gradle
  3. reset androidstudio
    add lines /application/android studio.app/bin/idea.properties: idea.config.path=~/.androidstudiopreview/config
    idea.system.path=~/.androidstudiopreview/system
  4. restart androidstudio.

then worked charm :d


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -