I have two projects in Android studio: model
and app
.
model
is written completely in java, graddle file starts with apply plugin: 'java'
app
is written in android-java and depends on model
. The graddle file starts with apply plugin: 'com.android.application'
I can insert this snippet:
/**
* Debugging
*
* @throws IllegalArgumentException
* if illegal == true
*/
private void debug(boolean illegal){
if (illegal)
throw new IllegalArgumentException("tu");
}
anywhere in app
and there are no errors. However when I insert it anywhere in model
I get an error: Symbol 'IllegalArgumentException' is inaccessible from here
and upon clicking 'more'
Inspection info: This inspection points out unresolved references inside javadoc
I can however compile, run without problems.
My Android-studio version is 3.4. I do not remember having this problem with the version I used before but I'm not sure which version that was.