2

I'm trying to learn AS, but after struggling for 3 days no progress. Using https://www.udacity.com for learning.

Trying the hello world app from there, got this error Gradle DSL method not found: 'android()'. I've worked in eclipse, but migrating from eclipse to AS looks very tough decision for me. I'm using cordova cli so far, now thinking to use AS. While runing the app am not able to open RUN TOOL it show but is grey color(which is not clickable). Downloaded new Gradle version (2.10), and set the path to that directory.But still showing Gradle version 2.2.1 in Project Structure. Checked in stackoverflow as well, but nothing worked. Worst experieence.

Any body have idea what is going on, would be helpfull.

Android Studio 1.2.2

PJ1405
  • 545
  • 1
  • 3
  • 18

2 Answers2

0

Make sure you have the latest Gradle and Android Studio: https://www.gradle.org/ http://tools.android.com/tech-docs/new-build-system/version-compatibility

Go for more Android Studio Gradle DSL method not found: 'android()' -- Error(17,0)

Community
  • 1
  • 1
Abhishek
  • 3,348
  • 3
  • 15
  • 34
0

Udacity's Android courses are using the newest dependencies and AS version.

Please remove existing 1.2 version and upgrade it to 1.5.1 to get the fresh experience and less building problems

Be sure that you're using Oracle JDK7 not Java 8 SDK. It may cause some problems with Gradle

I recommend you also try to follow the steps in this post: I just installed Android Studio and created a new project, it always came up with Error with gradle

Have a question? Please free to ask

Community
  • 1
  • 1
piotrek1543
  • 19,130
  • 7
  • 81
  • 94