You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
when running an android build using the latest gradle version, following error occurs:
A problem occurred configuring project ':flutter_libserialport'.
> 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.
To solve this problem following line needs to be defined (probably):
In android/src/build.gradle
Hey,
when running an android build using the latest gradle version, following error occurs:
To solve this problem following line needs to be defined (probably):
In
android/src/build.gradle
Also the min SDK version should be increased to 19 according to this warning:
C/C++: Platform version 16 is unsupported by this NDK, using 19 instead. Please change minSdk to at least 19 to avoid this warning.
This should be everything the console is asking for :)
Recommendation
I have avoided all warnings and errors by making following changes:
jCentral()
repository withmavenCentral()
because it is already deprecatedcompileSdkVersion
to 34jvmTarget
of 1.8minSdkVersion
to 19Now there are no warnings and errors anymore and the
android/src/build.gradle
is looking like that:The text was updated successfully, but these errors were encountered: