解决ThemeOverlay.AppCompat.Light找不到而导致的编译失败问题

代码报错

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:: AAPT: error: resource style/Theme.AppCompat.Light.Dialog.Alert (aka com.vincentb.MobControl:style/Theme.AppCompat.Light.Dialog.Alert) not found.
     error: failed linking references.

解决办法

入v7兼容包:

implementation 'com.android.support:appcompat-v7:28.0.0'
posted @ 2022-06-16 15:17  镜子-眼泪  阅读(846)  评论(0)    收藏  举报