标题 导入module报错Namespace not specified. Please specify a namespace in the module’s build.gradle file like so:
Solution: Open the build:gradle of the imported module
android {
namespace 'com.example.XXX'
compileSdk 33
defaultConfig {
applicationId "com.example.XXX"
minSdk 16
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
。。。
}
}
compileOptions {
。。
}
}
dependencies {
。。。
}
Change the namespace 'com.example.XXX' and applicationId "com.example.XXX" to the imported project's namespace 'com.example.XXX' and applicationId "com.example.XXX"
Generally, it will also report that the version is incorrect, and also change compileSdk 33 targetSdk 33 minSdk 16 to the same model of the imported project
-------------------------------------------------good Memory is not as good as a bad pen