flutter-plugins-locker icon indicating copy to clipboard operation
flutter-plugins-locker copied to clipboard

Unable to build on latest flutter version.

Open TJMusiitwa opened this issue 1 year ago • 1 comments

I am raising this issue as the current flutter locker version is unable to build on the Flutter version 3.22.2. It raises an issue similar to that of #37. Perhaps having the PR #44 merged should help solve this.

Error Output:

 Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':flutter_locker'.
> 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/current_user/.pub-cache/hosted/pub.dev/flutter_locker-2.1.4/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 3s
Error: Gradle task assembleDebug failed with exit code 1

Flutter Doctor Output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.1.2 23B92 darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.91.1)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

Hoping this can be addressed at the soonest as it is blocking a critical dependency update we need to finish. Or perhaps if you know any way we can temporarily address the issue @zenled

TJMusiitwa avatar Jul 18 '24 19:07 TJMusiitwa

Same issue Failed to query the value of property 'buildFlowServiceProperty'.

Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@59555ede of type BuildFlowService.Parameters A problem occurred configuring project ':flutter_locker'. > 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.

Mohammad-Abureesh avatar Sep 15 '24 22:09 Mohammad-Abureesh

Hey @zenled can you provide any feedback regarding this issue, it is proving critical in blocking an upgrade from happening.

TJMusiitwa avatar Dec 09 '24 10:12 TJMusiitwa

Closing. The issue should be fixed in the latest version v2.1.5.

zenled avatar Jan 08 '25 12:01 zenled