someone know why my commands.json file inside raw folder is not known ?
I got cannot resolve symbole 'commands '
I have a few flavours and inside raw folder of each flavor, I have overrode my commands.json file.
someone know why my commands.json file inside raw folder is not known ?
I got cannot resolve symbole 'commands '
I have a few flavours and inside raw folder of each flavor, I have overrode my commands.json file.
try this
InputStream ins = getResources().openRawResource(getResources().getIdentifier( "commands", "raw", getPackageName()));
// FILENAME_WITHOUT_EXTENSION YOUR_PACKAGE_NAME
instead of this
InputStream ins = cx.getResources().openRawResource(R.raw.commands);