A crazy problem is that after the project is transferred to kotlin, it always reports: unresolved reference: XXXXXXX
the pre compilation of the project can report no error, but the problem is reported as soon as the mark is marked. The location of the problem is related to the interface defined by kotlin in in the project,
so it begins to solve:
check whether there are bugs in the definition code of the interface. The conclusion is no problem. Check whether there are bugs in the implementation of the interface. The conclusion is that the implementation class has not been executed to the environment, whether there are problems, and the version of gradle and other related tools has not been upgraded. Therefore, create a new kotlin module to import the error interface class, Results it works normally
conclusion:
when defining the interface of kotlin in the module of Java environment, an error will be reported during compilation.
Read More:
- Kotlin: How to Solve kapt import error
- Android studio New kotlin project Error: org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21-release-315
- ktor org.jetbrains:kotlin-css-jvm Dependency Failure [Solved]
- Kotlin gets the ID automatically error [How to Solve]
- How to Solve Project Upgrade to flutter2.5.0 Error
- How to Solve Android jetpack Room Schema export Error
- How to Solve “/usr/bin/ld: skipping incompatible”
- [Solved] C++ Compile: error LNK2019: unresolved external “XX“
- How to Solve UW Microcontroller KEIL _WEAK Error
- How to Solve Error: failed to load response
- How to Solve Import antd Error: Module build failed
- [Solved] C++ error: undefined reference to `xxx‘
- How to Solve cocos2dx msb3073 Error
- How to Solve golang test Error: # command-line-arguments [command-line-arguments.test]
- How to Solve Arxiv Upload with PDFLatex Error
- VScode: How to Solve golong plug-in install Error
- How to Solve Error: EOF occurred in violation of protocol (_ssl.c:877)
- How to Solve Valgrind 3.14 error on ARM 64
- error: undefined reference to `calculate()` [How to Solve]
- How to Solve Client-go Mod Error