Open FantaMagier opened 1 month ago
Just simply update your settings.gradle
files:
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.1" apply false // Make sure this one is updated
id "org.jetbrains.kotlin.android" version "1.6.10" apply false
}
And gradle-wrapper.properties
file:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip // Update this to 8.x
@alamin-karno After that I get the following error: * What went wrong: A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'. Could not create an instance of type com.android.build.api.variant.impl.ApplicationVariantImpl. 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.
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 7s
You have to added namespace on build.gradle
in app lavel.
android {
namespace "com.example.myapp" // Here your app package name
...
}
You can check this project for clear concept on how to setup on Android: flutter-crisp-chat/example
Describe the bug The new Version for Crisp Chat get me this error:
crisp_chat: ^2.0.6