Open salman0017 opened 1 year ago
Hey @juliuscanute , will you be able to check my PR if I work on this?
Same problem, i added the namespace in app/build.gradle, but other error ocorred
android {
compileSdkVersion 34
namespace 'br.com.any'
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
checkReleaseBuilds false
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "br.com.any"
minSdkVersion 21
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
debug {}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.google.firebase:firebase-analytics:17.4.4'
implementation 'com.google.firebase:firebase-messaging:20.2.3'
implementation 'com.google.guava:guava:27.0.1-android'
}
A problem occurred configuring project ':qr_code_scanner'.
[ ] > 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: C:\Users\tiago.machado\AppData\Local\Pub\Cache\hosted\pub.dev\qr_code_scanner-1.0.1\android\build.gradle. 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.
Describe the bug A clear and concise description of what the bug is.
Flutter information Always provide the output of
flutter doctor -v
as it is needed in order to know on which Flutter versions the bug exists in.Device (please complete the following information):
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.