I use Android Studio & Kotlin language v.1.0.3-release-IJ143-105
I create 2 Project
Project frist create java class and method
public class Monitor{
public static class Lang{
public static String Eng = “en”
}
}
Project second import first project by gradle and use method by kotlin found error
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.system_splash_activity)
var lang:String = Monitor.Lang.Eng
}
Error Message:
Unresolved reference: Monitor
Excution failed for task “:app:complieDebugKotlin”.
> Compilation error. See log for more details
I try with many how
Clean Project ----> not work
Rebuild Project ----> not work
Sync Project with Gradle… ----> not work
Invalidate Caches ----> not work. But !! restart it work
How to reload reference don’t restart android studio?
Please help me. I wanna develop don’t restart android have new class