报错信息:
What went wrong: Execution failed for task ':shared_preferences_android:compileDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.btapi.BuildToolsApiCompilationWork > java.lang.Exception: Could not close incremental caches in D:\projects\flutterprojects\peafowlpd\build\shared_preferences_android\kotlin\compileDebugKotlin\cacheable\caches-jvm\jvm\kotlin: class-fq-name-to-source.tab, source-to-classes.tab, internal-name-to-source.tab
解决方案:
在app/gradle.properties关闭增量编译缓存
`android.nonFinalResIds=false
android.enableBuildCache=false
org.gradle.caching=false
kotlin.incremental=false`
评论 (0)