Skip to content

java.lang.NoClassDefFoundError: com.parrot.drone.groundsdk.internal.Logging #8

@stevenlustig

Description

@stevenlustig

I am managing my sessions manually.

The second time calling GroundSdk.newSession(context, null) i.e. after a session open, close, and reopen, I get the following exception:

java.lang.NoClassDefFoundError: com.parrot.drone.groundsdk.internal.Logging
This is caused by a missing dependency of the sdkcore module. I've tried including 'sdkcore' in my gradle build script alongside 'groundsdk' and 'arsdkengine', which properly shows 'import com.parrot.drone.sdkcore.ulog.ULog;' as defined when I click through the exception which shows the decompiled GroundSdkCore.java class, however I still get the same crash when running the app.

Use case: The session is initialized on fragment create and destroyed on fragment destroy. The second time visiting the fragment, the app crashes. I am managing multiple drones and potentially will be accessing this from a service as well which is why I am not simply using the ManagedGroundSdk.obtainSession(). I am calling newSession() from kotlin, if that matters. Also, groundSdk is not in my app module but in a library dependency module which is built/packaged together with the app, and part of the same codebase.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions