Missing top-level build.gradle in multi-module project

前端 未结 6 449
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 14:15

I\'m missing the \"Top-Level\" project build.gradle script from my project:

\"enter

6条回答
  •  滥情空心
    2021-01-01 14:42

    You can just add build.gradle for root folder which contains gradle.properties and settings.gradle file

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    
    buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:1.0.0'
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            jcenter()
        }
    }
    

提交回复
热议问题