I am trying to log the following in Android Java:
Log.i("Build.VERSION.SDK_INT", Build.VERSION.SDK_INT.toString());
Log.i("Build.VERSION_CODES.M", Build.VERSION_CODES.M.toString());
Log.i("Build.VERSION_CODES.O", Build.VERSION_CODES.O.toString());
Log.i("getReactApplicationContext().checkCallingOrSelfPermission(Manifest.permission.READ_SMS", getReactApplicationContext().checkCallingOrSelfPermission(Manifest.permission.READ_SMS).toString());
Log.i("getReactApplicationContext().checkCallingOrSelfPermission(Manifest.permission.READ_PHONE_NUMBERS)", getReactApplicationContext().checkCallingOrSelfPermission(Manifest.permission.READ_PHONE_NUMBERS).toString());
Log.i("getReactApplicationContext().getSystemService(Context.TELEPHONY_SERVICE)", getReactApplicationContext().getSystemService(Context.TELEPHONY_SERVICE).toString());
Log.i("Build.VERSION_CODES.O", Build.VERSION_CODES.O.toString());
But I get the error error: int cannot be dereferenced
on every line.
How can I log these objects in logcat?