-
Notifications
You must be signed in to change notification settings - Fork 60
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
插件冲突 #136
Comments
报错提示 上面 写着呢 在你项目的
AndroidManifest.xml 中添加 tools:replace="android:networkSecurityConfig"
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年12月23日(星期六) 下午3:21
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [lisen87/image_pickers] 插件冲突 (Issue #136)
您好,我在接入广告插件的时候发现冲突,请问有什么建议么。
E:\flutterDemo\ces\android\app\src\debug\AndroidManifest.xml:26:9-60 Error: Attribute ***@***.*** ***@***.***/network_config) from [:flutter_gromore_ads] AndroidManifest.xml:26:9-60 is also present at [:image_pickers] AndroidManifest.xml:34:9-53 ***@***.***/net_sec). Suggestion: add 'tools:replace="android:networkSecurityConfig"' to <application> element at AndroidManifest.xml:14:5-48:19 to override. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > Manifest merger failed : Attribute ***@***.*** ***@***.***/network_config) from [:flutter_gromore_ads] AndroidManifest.xml:26:9-60 is also present at [:image_pickers] AndroidManifest.xml:34:9-53 ***@***.***/net_sec). Suggestion: add 'tools:replace="android:networkSecurityConfig"' to <application> element at AndroidManifest.xml:14:5-48:19 to override.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
这个提示我加过了,直接构建失败了
日志
|
只能有一个 tools:replace,这样写
tools:replace="android:theme,android:networkSecurityConfig"
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年12月23日(星期六) 下午3:27
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [lisen87/image_pickers] 插件冲突 (Issue #136)
这个提示我加过了,直接构建失败了
<application android:label="测试" android:name="${applicationName}" tools:replace="android:theme" ***@***.***/AppTheme" ***@***.***/ic_launcher" tools:replace="android:networkSecurityConfig">
日志
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > com.android.manifmerger.ManifestMerger2$MergeFailureException: Error parsing E:\flutterDemo\ai_miao_ying\android\app\src\main\AndroidManifest.xml * 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 14s Exception: Gradle task assembleDebug failed with exit code 1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
感谢您的回复,它报了新的错误
|
这是我的完整配置
|
您好,我看到一个关闭的issue #98 |
这个是不会影响的,可以先这么解决的 |
如果不想 fork的话,可以尝试 在自己项目中 添加 networkSecurityConfig配置,然后通过tools:replace去替换,这样应该是可以的 |
感谢您的回复,我自己参考2个插件的配置设置了一下可以运行了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,我在接入广告插件的时候发现冲突,请问有什么建议么。
The text was updated successfully, but these errors were encountered: