Android IDE (AIDE) Support Forum

ContextCompat and ActivityCompat are being shown as Unknown entity

I have the following code

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

But AIDE is showing unknown entity for ContextCompat and ActivityCompat.

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

Thanks.

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.