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)
- show hidden files
execute in terminal: defaults write com.apple.finder appleshowallfiles yes restart finder (option+rightclick on finder > relaunch) - delete gradle files:
~/.gradle - reset androidstudio
add lines /application/android studio.app/bin/idea.properties: idea.config.path=~/.androidstudiopreview/config
idea.system.path=~/.androidstudiopreview/system - restart androidstudio.
then worked charm :d
Comments
Post a Comment