当我试图重建我的项目时,我遇到了下面的错误:
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
我几乎尝试了所有方法,如无效缓存 / 重新启动、清理和重建、关闭并重新打开项目、重新导入项目、删除idea文件夹
等,但都没有起作用。
感谢您的帮助。