Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Link of class LocationSource failed #10660

@olsisaqe

Description

@olsisaqe

Platform:
Android 4.4.2
Samsung GT-I9301I
Mapbox SDK version:
5.2.0

Steps to trigger behavior

It gives a runtime error for MapView inflation
It works perfectly for Mapbox 5.1.4.
Worth to mention that my app has multidexing enabled.

Expected behavior

Not having runtime error for class linking

Actual behavior

crashes on inflation of the MapView:

12-08 10:49:49.276 13877-13877/com.moovel.demo W/dalvikvm: VFY: unable to find class referenced in signature (Lcom/mapbox/mapboxsdk/location/LocationSource;)
12-08 10:49:49.276 13877-13877/com.moovel.demo W/dalvikvm: VFY: storing type 'Ljava/lang/Object;' into field type 'Lcom/mapbox/services/android/telemetry/location/LocationEngine;' (Lcom/mapbox/mapboxsdk/maps/widgets/MyLocationView;.locationEngine)
12-08 10:49:49.276 13877-13877/com.moovel.demo W/dalvikvm: VFY:  rejecting opcode 0x5b at 0x0000
12-08 10:49:49.276 13877-13877/com.moovel.demo W/dalvikvm: VFY:  rejected Lcom/mapbox/mapboxsdk/maps/widgets/MyLocationView;.init (Lcom/mapbox/mapboxsdk/location/LocationSource;)V
12-08 10:49:49.276 13877-13877/com.moovel.demo W/dalvikvm: Verifier rejected class Lcom/mapbox/mapboxsdk/maps/widgets/MyLocationView;
12-08 10:49:49.276 13877-13877/com.moovel.demo W/dalvikvm: Class init failed in Constructor.constructNative (Lcom/mapbox/mapboxsdk/maps/widgets/MyLocationView;)
12-08 10:49:49.276 13877-13877/com.moovel.demo W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x417b5da0) ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidMapbox Maps SDK for Android

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions