Gradle project sync fails on new install of Android Studio 0.4.6 -


can't resolve error. gradle project sync fail, android studio 0.4.6 download

the following set up, please ask more info if needed. had working 3 months until upgrade 0.5.4 can't resolve on reinstall scratch.

os windows 7 x64

gradle build:

buildscript {     repositories {         mavencentral()     }    dependencies {         classpath 'com.android.tools.build:gradle:0.8.+'     } } allprojects {     repositories {         mavencentral()     } } 

gradle build project:

apply plugin: 'android' android {     compilesdkversion 19     buildtoolsversion "19.0.3"     defaultconfig {         minsdkversion 8         targetsdkversion 19         versioncode 1         versionname "1.0"     }     buildtypes {         release {             runproguard false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }    } } dependencies {     compile 'com.android.support:support-v4:19.0.1'     compile 'com.android.support:appcompat-v7:+'     compile filetree(dir: 'libs', include: ['*.jar']) } 

wrapper :

  1. distributionbase=gradle_user_home
  2. distributionpath=wrapper/dists
  3. zipstorebase=gradle_user_home
  4. zipstorepath=wrapper/dists
  5. distributionurl=http://services.gradle.org/distributions/gradle-1.10-all.zip

system paths:

  1. android_home c:\program files (x86)\android\android-studio\sdk
  2. class_path .;%java_home%\lib\tool.jar
  3. java_home c:\java\jdk1.7.0_45
  4. jdk_home c:\java\jdk1.7.0_45
  5. path ...... %java_home%\bin

question 1: resolve gradle sync fail

question 2: sdk manager missing , not working android studio build "y/n"

change line...!!

dependencies {     classpath 'com.android.tools.build:gradle:0.8.+' } 

for

dependencies {     classpath 'com.android.tools.build:gradle:0.9.+' } 

and android studio on version 0.5.4 recomed latest update... because include lot of patches... please let me know if helped you

edit

on android studio should able see little window call gradle console... once try sync gradle project see link says... need update build.gradle or that...

enter image description here


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -