|
/

集成flutter-verify插件后 flutter build apk打包失败

Tt*
发布于 4 年前
234来自福建省
智能认证 U-Verify
移动统计 U-App
SDK集成与升级
API调用
功能使用
其他

运行的是官方的demo,在真机上可以跑通,功能使用都没问题,然而在flutter build apk打包却失败了。在我自己的项目里也是这么个情况,当我屏蔽这个插件后打包成功

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':umeng_verify_sdk:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
AAPT: error: resource style/Theme.AppCompat.Light.NoActionBar (aka com.umeng.umeng_verify_sdk:style/Theme.AppCompat.Light.NoActionBar) not found.
error: resource style/Theme.AppCompat.Light.NoActionBar (aka com.umeng.umeng_verify_sdk:style/Theme.AppCompat.Light.NoActionBar) not found.
error: failed linking references.

按照百度出来的方案是添加 “com.android.support:appcompat-v7:28.0.0” 依赖,但这个demo里面原本就已经有了,有无朋友帮忙看看是什么问题?该如何解决呢?

2个回答
 
4 年前
来自上海

提交一个工单,咨询一下友盟官方技术官

 
4 年前
来自浙江省

你可以通过以下方式:1.项目通过 打开,直接构建 ;2. 在插件build.gradle依赖中添加implementation _com.android.support:appcompat-v7:28.0.0_ 任意一个都可以。

Loading ...
登录社区,分享你的经验