java - Cannot find the symbol class R even after adding import com.example.app.R; -


i using intellij idea , tried build android application , giving error saying 'cannot find symbol class r' @ places used r in code. included 'import com.example.app.r' line in classes , code correct , showing no errors. checked file->project structure->modules , both gen , src included sources. me fix this.

could please try way

file-> invalidat caches/restart , click on invalidate , restart button.

sometimes, takes cache , screws operation, restarting , invalidating cache works, please try out , inform.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -