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

Support latests versions of Gradle in Alpha Version 5.11.0-a1 #430

Open
punto338 opened this issue Oct 13, 2024 · 8 comments
Open

Support latests versions of Gradle in Alpha Version 5.11.0-a1 #430

punto338 opened this issue Oct 13, 2024 · 8 comments

Comments

@punto338
Copy link

When using lasts versions of gradle/AGP like 8.5.2, there are some features that doesn't work, like #428 .

Working good when using the sample AGP/Gradle, but not working in latests versions. Also, a lot of non DJI dependencies depend on gradle version, with an old version of gradle, some of the dependencies can't be used on its last version, and this is a problem because DJI SDK makes that the whole app is depending on the old version of AGP/Gradle (7.4.2)

@dji-dev
Copy link
Contributor

dji-dev commented Oct 14, 2024

Agent comment from yating.liao in Zendesk ticket #119289:

Could you let us know which features are affected by the Gradle?

°°°

@punto338
Copy link
Author

Using this code:

image

using gradle 7.4.2 is working fine, livestream is OK, but in gradle 8.7 I get this error:

error trying to stream: UNKNOWN => Live stream error is unknown

The only change I make is the gradle version, so no doubt is gradle issue.

@dji-dev
Copy link
Contributor

dji-dev commented Oct 15, 2024

Agent comment from yating.liao in Zendesk ticket #119289:

I will test it. Please wait for a while.

°°°

@punto338
Copy link
Author

Agent comment from yating.liao in Zendesk ticket #119289:I will test it. Please wait for a while.

°°°

Hello, any updates?

@dji-dev
Copy link
Contributor

dji-dev commented Oct 21, 2024

Agent comment from yating.liao in Zendesk ticket #119289:

Could you please share the reason why you need to update to version 8.7? MSDK V5 indeed does not support version 8.X.

°°°

@punto338
Copy link
Author

punto338 commented Oct 21, 2024

Agent comment from yating.liao in Zendesk ticket #119289:Could you please share the reason why you need to update to version 8.7? MSDK V5 indeed does not support version 8.X.

°°°

Using old version of gradle causes incompatibilities in newest versions of some basic dependencies: for example I can't use version 1.7.0 of androidx.appcompat:appcompat' I have to use 1.6.1, same with viewpager2 or 'com.google.firebase:firebase-crashlytics-gradle' classpath.

Also I can't use Java 21 because this error ocurrs: "Unsupported class file major version 65" I can only use Java up to version 19.

I also get these warnings like this when compiling:

com.android.tools.r8.kotlin.H

image

@punto338
Copy link
Author

Any updates? it would be a good improve to keep updated to the latest gradle version possible being the 5.11.0 tue first official version which will support API 34, and current DJI SDK gradle version was compiled using API 33.

@dji-dev
Copy link
Contributor

dji-dev commented Oct 28, 2024

Agent comment from yating.liao in Zendesk ticket #119289:

At this moment, it is still uncertain whether an update will occur and which version will be updated. The Gradle version will not render MSDK unusable, so its priority is not very high at the moment.

We have submitted a request for the updated version, and the team needs to evaluate it.

°°°

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

2 participants