Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓版本运行会报错,需要增加一行 namespace #23

Open
ChinaArJun opened this issue Dec 12, 2024 · 0 comments
Open

安卓版本运行会报错,需要增加一行 namespace #23

ChinaArJun opened this issue Dec 12, 2024 · 0 comments

Comments

@ChinaArJun
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':amap_map'.

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.

类似解决方案

1.3.1 手动修改插件的 build.gradle

找到 video_thumbnail 插件的源码路径,具体路径如下:
javascript 代码解读复制代码~/.pub-cache/hosted/pub.dartlang.org/video_thumbnail-/

在 video_thumbnail 插件的 android/build.gradle 中添加 namespace,例如:

android {
namespace 'xyz.justsoft.video_thumbnail'
// 其余配置...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant