Когда я пытаюсь перестроить свой проект, я получаю сообщение об ошибке ниже:
warning: flag is not supported by this version of the compiler: -Xallow-no-source-files
warning: flag is not supported by this version of the compiler: -Xjava-source-roots=/Users/tyln/AndroidStudioProjects/PhoneBox/base/navigation/build/generated/source/buildConfig/dev/debug
base/navigation/src/main/java/com/raqun/phonebox/navigation/IntentLoader.kt:7:9: error: unresolved reference: BuildConfig
BuildConfig.PACKAGE_NAME,
^
> Task :base:navigation:compileDevDebugKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':base:navigation:compileDevDebugKotlin'.
> Compilation error. See log for more details
Когда я проверяю класс, нет неразрешенных ссылок.
Я использую GradleВерсия 3.3.1
Я почти все перепробовал, например Invalidate Cache / Restart, Clean and Rebuild, Close and Reopen project, Reimport project, delete idea folder
и т. Д., Но ни один из них не сработал.
Спасибо за помощь.