[AOS] information about setting the namespace.

2024. 3. 21. 15:28dev/aos

728x90
반응형

namespace error

 

project(build.gradle)

 

buildscript {
    ext.kotlin_version = '1.9.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        gradlePluginPortal()    // replace jcenter()
        google()
        mavenCentral()
        maven {url('https://jitpack.io')}
        maven {url = "https://devrepo.kakao.com/nexus/content/groups/public/"}
    }

    subprojects {
        afterEvaluate { project ->
            if (project.hasProperty('android')) {
                project.android {
                    if (namespace == null) {
                        namespace project.group
                    }
                }
            }
        }
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}

 

 

Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

728x90
반응형

'dev > aos' 카테고리의 다른 글

[AOS] 라이브러리(library) 만들기  (0) 2024.06.27
[kotlin] no constructor class  (0) 2024.06.13
[Kotlin] Map  (0) 2024.03.20
[AOS] Kakao Login  (0) 2024.02.13
[AOS] PackageInfo #move other app  (0) 2024.02.08