A strange problem came from no where.
The project worked fine and suddenly in all classes where such import was used
import android.support.v4.app.ActivityCompat; Begin to show that he cannot recognize what it is ...
Checked .gradle there everything is fine
compile 'com.android.support:support-v4:24.2.1' Made a project rebuild, closed the studio opened ... Nothing helps ...
In the lines where I used this class, because here for example
ActivityCompat.checkSelfPermission(activity.getApplicationContext(), permission) == PackageManager.PERMISSION_GRANTED) now when you press Alt + Enter offers to add a library
import android.support.v13.app.ActivityCompat; Who can tell what's going on here? Why not see the right library?
compile 'com.android.support:support-v13:24.2.1'- YuriySPb ♦checkSelfPermission()method that I use ... And besides, I did not update the version number ... But still, I just tried to lower the version number by 2 and still the same error .. - Aleksey TimoshchenkoInvalidate cache and restartstudios to do and \ or install an older version of the studio - YuriiSPb ♦