-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Thank you for using Web3Auth!
If you are looking for support, please check out our documentation or consider asking a question on Community Forum.
Before filling the form fields, please ensure that you have searched the existing issues and checked community forum.
Install the latest version of flutter, add the package as dependency and you get a build exception that states
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ':single_factor_auth_flutter'.
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: /Users/sergiomartell/.pub-cache/hosted/pub.dev/single_factor_auth_flutter-7.0.0/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.
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 1s
Error: Gradle task assembleDebug failed with exit code 1
Please tell us exactly how to reproduce the problem you are running into.
Open build.gradle in single_factor_auth_flutter-7.0.0/android/ and the required namespace declaration is missing in the android block.
Code sample
android {
compileSdk = 34
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 26
consumerProguardFiles 'consumer-rules.pro'
}
}
// If you are using Web3Auth PnP SDK, please provide Web3Auth initialization
// and login code snippet.
// Paste your code hereScreenshots or Video
Upload any screenshots or video of the bug if applicable.
Logs
Include the full logs between the lines with the backticks below. If you are running on Web, please add console logs.
Note: Please do not upload screenshots of text. Instead, use code blocks
or the above mentioned ways to upload logs.
[Paste your logs here]Desktop (please complete the following information):
- OS: [e.g. iOS, Android, MacOS, Windows]
- Browser [e.g. Chrome, Safari, Brave, Firefox]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6, Samsung S22, iPhone 12]
- OS: [e.g. Android 12, iOS 14, iOS 13.1]
- Browser [e.g. Chrome, Safari, Brave, Firefox]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.