Could not find method android() for arguments

后端 未结 4 1710
不知归路
不知归路 2020-11-27 05:23

I\'ve been trying to import a project to Android Studio and this is where I am stuck, there is a similar question on Stack Overflow but it did not provide a solution to my p

4条回答
  •  忘掉有多难
    2020-11-27 05:34

    You are using the wrong build.gradle file.

    In your top-level file you can't define an android block.

    Just move this part inside the module/build.gradle file.

    android {
        compileSdkVersion 17
        buildToolsVersion '23.0.0'
    }
    dependencies {
        compile files('app/libs/junit-4.12-JavaDoc.jar')
    }
    apply plugin: 'maven'
    

提交回复
热议问题