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

flutter集成悟空,编译的时候报错! #37

Open
JakeGi opened this issue Dec 26, 2024 · 2 comments
Open

flutter集成悟空,编译的时候报错! #37

JakeGi opened this issue Dec 26, 2024 · 2 comments

Comments

@JakeGi
Copy link

JakeGi commented Dec 26, 2024

版本信息:
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (4 months ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3
错误:
FAILURE: Build failed with an exception.

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

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.
@No8blackball
Copy link
Collaborator

最新的example编译到Android真机是没有这个问题的

@WangYX321
Copy link

遇到了同样的问题,打包apk时报错:
【版本信息】:
Flutter 3.24.0
【错误信息】:
说是encryptions这个库没有配置namespace

  • What went wrong:
    Execution failed for task ':encryptions:processReleaseManifest'.

A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
Incorrect package="com.riguz.encryptions" found in source AndroidManifest.xml: /Users/jackywang/.pub-cache/hosted/pub.flutter-io.cn/encryptions-1.1.0+1/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.riguz.encryptions" from the source AndroidManifest.xml: /Users/jackywang/.pub-cache/hosted/pub.flutter-io.cn/encryptions-1.1.0+1/android/src/main/AndroidManifest.xml.

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

3 participants