Hina-Hussain / DeviceInformationPlugin

Apache License 2.0
6 stars 13 forks source link

Namespace not specified #11

Open ARanjithReddy306 opened 2 months ago

ARanjithReddy306 commented 2 months ago

A problem occurred configuring project ':device_information'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. 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.
ASDdgomez commented 1 month ago

Hi , same the error: Flutter : sdk: ">=3.3.4 <4.0.0"

settings.gradle: id "com.android.application" version "8.6.0" apply false id "org.jetbrains.kotlin.android" version "1.8.0" apply false

gradle-wrapper.properties distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

unicornB commented 6 days ago

// 统一设置namespace 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") }