Missing top-level assembly in a multi-module project

I miss the project "Top-Level" build.gradle script from my project:

enter image description here

I imported it into Android Studio from a very complex Maven / Eclipse project and basically made a module ("android") at the top level of the directory and added all submodules ("tappurwear", "shared", etc.) to this source directory module.

I know this is a kind of confused structure, but there are many other build scripts, so I can’t just move all the files to a separate separate module.

, , build.gradle script ? Android Studio, , , script "android", script. build.script script, ? script, , Android Studio Gradle?

+8
4
// 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.2.3'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}
allprojects {
repositories {
    jcenter()
}
}

, , , build.gradle .txt(, .gradle). "", gradle, , app,.idea, gradle, e.t.c.

, gradle, - .

, , " → → ( , , , ). x, .

+1

, .

  1. .
  2. " Android Studio".
  3. " Android" build.gradle.
+1

build.gradle , gradle.properties settings.gradle

// 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()
    }
}
0
  1. ( )
  2. , build.gradle () Gradle
  3. wait gradle sync, build.gradle ...
0
source

Source: https://habr.com/ru/post/1598619/


All Articles