Android Studio 1.0RC4 Gradle build error

后端 未结 3 1462
無奈伤痛
無奈伤痛 2020-12-31 17:17

I just downloaded Android Studio 1.0RC4 and I can\'t build any project, even newly created ones.

The error I got is:

Error:Could not

相关标签:
3条回答
  • 2020-12-31 17:22

    For 64 bit Windows 7, I had to download jdk7 64bit in addition to deleting the .gradle and starting Android studio as an admin. I had also set JAVA_HOME to 64bit JDK and set JAVA_OPTIONS to -Djava.net.preferIPv4Stack=true

    0 讨论(0)
  • 2020-12-31 17:23

    I finally got it working guys

    I had to delete the .gradle folder in 'C:\Users\Username\' and then I opened AS with admin rights and it came back to life!

    Thanks everyone.

    0 讨论(0)
  • 2020-12-31 17:41

    you can probably drop the RC-1 in your build.gradle:

    classpath 'com.android.tools.build:gradle:1.0.0'
    

    Here's a checklist of things that have changed recently

    http://tools.android.com/tech-docs/new-build-system/migrating-to-1-0-0

    0 讨论(0)
提交回复
热议问题