Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stevenlustig opened this issue Jan 4, 2023 · 0 comments

Comments

@stevenlustig
Copy link

stevenlustig commented Jan 4, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant