Home > other >  kotlin class icon in android studio
kotlin class icon in android studio

Time:04-20

It seems that android studio is not recognizing my kotlin class. The icon near the class does not appear as shown below

enter image description here

Subsequetly i cannot call the class in createFragment java class

CodePudding user response:

Showing a different icon happens often for me when there are multiple class declarations in the file. Something like this (within one file):

data class A(
  var uuids: List<UUID>
)

data class B(
  var numbers: List<Int>,
)

But without the code not much more can be said.

CodePudding user response:

If there is no class in the TaskListFragment, it will look like yours.

  • Related