Android IDE (AIDE) Support Forum

ContextCompat and ActivityCompat are being shown as Unknown entity

I have the following code

if (ContextCompat.checkSelfPermission(this,
!= PackageManager.PERMISSION_GRANTED) {
if (ActivityCompat.shouldShowRequestPermissionRationale(this,
Manifest.permission.SEND_SMS)) {
} else {
new String[]{Manifest.permission.SEND_SMS},

But AIDE is showing unknown entity for ContextCompat and ActivityCompat.

Please help me in this regard and oblige me there by.


You need to actually add the support library to your project and add the dependency search the forum for more info and probably a walkthrough.

1 Like

Not sure, but maybe AIDE mate addresses this issue.