一個依賴引發的崩潰啊……
我其實啥都沒幹,之前一直運行的好好的,這是在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'