Gradel DSL method not found 'android()' error android studio

<>

This question already has an answer here:

Answers


You are using the wrong build.gradle file

In your top-level file you can't use the android block:

Just remove this part from the first build.gradle

android {
    compileSdkVersion 19
    buildToolsVersion '23.0.1'
}
dependencies {

}
apply plugin: 'checkstyle'

Need Your Help

javascript http to https redirect

javascript html

I am making a search engine, and I have the code to redirect http to https when users access my page. Except I'm not sure if I should put it in the head or body section of my page.

Increment numbers in a textarea using a RegExp

javascript regex

I have a textarea (with id 'work') with successive numbers in square brackets as follows: