|
/

flutter中集成了 umeng_verify_sdk 这个sdk后,无法编译打包

Jj*
发布于 4 年前
81754来自广东省
智能认证 U-Verify
移动统计 U-App

* What went wrong:

Execution failed for task ':umeng_verify_sdk:verifyReleaseResources'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

> 1 exception was raised by workers:

com.android.builder.internal.aapt.v2.Aapt2Exception: 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.

尝试过新建了一个全新flutter项目 ,集成这两个库 umeng_common_sdk: ^1.2.5 umeng_verify_sdk: ^1.0.0

当集成了 umeng_verify_sdk 后,使用 flutter build apk 编译项目,显示上面的失败。 但 flutter run 是成功的。

有人知道是什么原因问题吗?

8个回答
 
4 年前
来自江西省

dependencies { implementation 'com.android.support:appcompat-v7:28.0.0' }

添加后报错 :

Version 28 (intended for Android Pie and below) is the last version of the legacy support library, so we recommend that you migrate to AndroidX libraries when using Android Q and moving forward. The IDE can help with this: Refactor > Migrate to AndroidX...

Refactor > Migrate to AndroidX 之后变成了

implementation 'androidx.appcompat:appcompat:1.0.0'

但是还是打包失败

 
4 年前
来自上海

楼主你好,你可以使用Android Studio编辑器打包

 
4 年前
来自浙江省

你好,在项目的gradle中添加这个依赖试试 dependencies { implementation 'com.android.support:appcompat-v7:28.0.0' } 项目通过如下方式打开,直接构建

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