settings - Android Studio auto Import unavailable for classed in src/test dir -


as title said, during usual development,if type in activity, android.app.activity imported automatically. during unit test developing in src/test directory, function auto import comes unavailable.i have press alt+enter again , again import classes.is setting make automatically? or other way make easy...

try actions:

  • close android studio , open again
  • reload project, clean project , build again. should ensure packages in projects have been loaded
  • make sure not have graphic plugin can affect visual highlights code. pass through when using material ui theme.
  • check if auto import switched on in settings
  • if can see red lamp in left side of code , click on it, see every wrong thing android studio can detect on code, else maybe doing wrong imports

  • if using kotlin, remenber use kotlin suport plugin


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -