Player_Flutter icon indicating copy to clipboard operation
Player_Flutter copied to clipboard

Namespace not specified,需要对AGP8.2以上的android版本插件做兼容。

Open lzhAndroid opened this issue 10 months ago • 1 comments

A problem occurred configuring project ':super_player'.

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.

lzhAndroid avatar Apr 18 '24 05:04 lzhAndroid

请在build.gradle中添加类似代码,兼容使用namespace的项目,AGP8.0以后强制使用namespace。 if (project.android.hasProperty("namespace")) { namespace ... })

lzhAndroid avatar Apr 18 '24 05:04 lzhAndroid

@lzhAndroid 对高版本gradle支持已经完成,后续会发布更新

Kongdy avatar May 22 '24 08:05 Kongdy

该问题已经于 745fb3e817edeff11c7d8e5bdd93451ffe5bebbc 版本修复

Kongdy avatar Jul 26 '24 06:07 Kongdy