How do I properly run this project?
Following the instructions on the Developing.md doesn't seem to completely work for me.
Specifically, when running make sdk-build, I'm getting errors at this step. I noticed there was a PrivateRelease symlink in the module-telemetry folder that referenced a folder mapbox-maps-android-private which I don't have. Is this expected?
> Task :sdk-base:compilePrivateReleaseKotlin FAILED
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/attribution/AttributionPlugin.kt: (5, 43): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/attribution/AttributionPlugin.kt: (11, 60): Unresolved reference: AttributionSettingsInterface
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/compass/CompassPlugin.kt: (6, 39): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/compass/CompassPlugin.kt: (11, 73): Unresolved reference: CompassSettingsInterface
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/gestures/GesturesPlugin.kt: (10, 40): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/gestures/GesturesPlugin.kt: (15, 69): Unresolved reference: GesturesSettingsInterface
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/locationcomponent/LocationComponentPlugin.kt: (5, 49): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/locationcomponent/LocationComponentPlugin.kt: (15, 3): Unresolved reference: LocationComponentSettingsInterface
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/locationcomponent/LocationComponentPlugin2.kt: (3, 49): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/locationcomponent/LocationComponentPlugin2.kt: (8, 63): Unresolved reference: LocationComponentSettingsInterface2
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/logo/LogoPlugin.kt: (4, 36): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/logo/LogoPlugin.kt: (9, 36): Unresolved reference: LogoSettingsInterface
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/scalebar/ScaleBar.kt: (3, 40): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/scalebar/ScaleBar.kt: (22, 17): Unresolved reference: ScaleBarSettings
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/scalebar/ScaleBarPlugin.kt: (5, 40): Unresolved reference: generated
e: /mapbox-maps-android/sdk-base/src/main/java/com/mapbox/maps/plugin/scalebar/ScaleBarPlugin.kt: (10, 55): Unresolved reference: ScaleBarSettingsInterface
When trying to build within android studio:
I'm getting errors related to module-telemetry:kaptGenerateStubsPublicDebugKotlin
java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x2f70cedb) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module
Commenting out the code related to module-telemetry allowed me to build and run the app but that seems a bit hacky.
I'm using JDK 11 at the moment, but newer versions did not seem to work for me either. The docs mention AGP 7.0+ but the newer versions did not work with the kotlin compiler so I left everything configured to what the sdk-manager script set for me.