解决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'

浙公网安备 33010602011771号