Java Question Simple Library Compiler - import problems

agraham

Expert
Licensed User
Longtime User
I am successfully using SLC to compile several of my old libraries but in trying to use it compile some other library code I am getting "package ... does not exist" errors when compiling. I am so rusty on Java that I have no idea how to overcome this. Ideas welcome!

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.media.ExifInterface;
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

agraham

Expert
Licensed User
Longtime User
Thanks for the suggestion but it doesn't work. stan.jar doesn't include android.support.annotation. This is all a bit strange as the original source code shouldn't need workarounds as the annotations were only added in March last year for Kotlin compatibility and so should be up to date.

Anyway don't worry about it any more as all this is well over my head so I'll give up for the time being
 

Johan Schoeman

Expert
Licensed User
Longtime User

Johan Schoeman

Expert
Licensed User
Longtime User
Have you added:
B4X:
#AdditionalJar: com.android.support:support-annotations
?
Yes Erel. But it is not in stan.jar
Everything else is in stan.jar but for some unknown reason annotation does not get included into stan.jar
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…