plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

id "com.android.application" version "8.2.2" apply false[Compile]:

Open shileicomeon opened this issue 8 months ago • 0 comments

Operating System

Android

Plugin

device_info_plus

Version

11.2.0

Flutter SDK

3.24.5

Compilation command

id "com.android.application" version "8.2.2" apply false 8.0.0+ 需要添加 namespace

Dart Dependencies


Native dependencies


Compilation Error

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

Flutter Doctor

Checklist before submitting a bug

  • [x] I searched issues in this repository and couldn't find such bug/problem
  • [x] I Google'd a solution and I couldn't find it
  • [x] I searched on StackOverflow for a solution and I couldn't find it
  • [x] I read the README.md file of the plugin
  • [x] I'm using the latest version of the plugin
  • [x] All dependencies are up to date with flutter pub upgrade
  • [x] I did a flutter clean
  • [x] I tried running the example project

shileicomeon avatar Apr 29 '25 02:04 shileicomeon