一个依赖引发的崩溃啊……
我其实啥都没干,之前一直运行的好好的,这是在flutter中新加了一个插件,然后程序就炸了……
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
error: resource style/Theme.AppCompat.DayNight.Dialog (aka com.softfoxapp.soft_fox_app:style/Theme.AppCompat.DayNight.Dialog) not found.
error: failed linking references.
* 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
原因是缺少依赖……,那为什么之前也没有就可以呢?
解决办法:
在Android的build.gradle中添加:
implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'