I am trying to initialize a tom tom map but each time I am trying to access a property/function of a Tomtom object I get either
Cannot access ‘android.support.v4.app.Fragment’ which is a supertype of ‘com.tomtom.online.sdk.map.MapFragment’. Check your module classpath for missing or conflicting dependencies
or
Cannot access ‘android.support.v4.app.ActivityCompat.OnRequestPermissionsResultCallback’ which is a supertype of ‘com.tomtom.online.sdk.map.TomtomMap’. Check your module classpath for missing or conflicting dependencies
This is my code
The dependencies and all the required setup have been followed step by step:
- I got the maven repository URL inside allprojects
- added implementation “com.tomtom.online:sdk-maps:2.4807”
- source and target compatibility are set to JavaVersion.VERSION_1_8
- min sdk version is 21
Am I doing something wrong?