dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
972 stars 579 forks source link

run demo failed #1251

Open liebebaby opened 8 months ago

liebebaby commented 8 months ago

hello, I'm new to Android. I git clone this Sample demo and want to run it. However, it doesn't work.

The original project set the gradle version to 6.2.1. But according to AS hint, it suggests me upgrading the gradle version to 7.2 or later. So, I do it. After download gradle 7.2, I got the error below:

截屏2023-10-16 18 07 33

Caused by: org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: Could not create task ':app:minifyDebugWithR8'.

dji-dev commented 8 months ago

Agent comment from Hummels Lei in Zendesk ticket #92885:

I would like to inform you that the Gradle version can be configured in the Project Structure settings. It is possible to set it to the same version as mine, which is 6.7.1. Additionally, the Android Gradle Plugin Version can also be set to 4.2.2.

°°°

liebebaby commented 8 months ago

hello, I got this error after use gradle 6.7.1. Can you please help me?

截屏2023-10-17 13 57 54
dji-dev commented 8 months ago

Agent comment from Hummels Lei in Zendesk ticket #92885:

I kindly request that you proceed with re-downloading the sample code and subsequently importing it into Android Studio for testing purposes.

°°°

liebebaby commented 8 months ago

I re-download the sample code. And I still got this error. Is that related to my AS version? My AS version is: Android Studio Giraffe | 2022.3.1 Patch 2

dji-dev commented 8 months ago

Agent comment from Hummels Lei in Zendesk ticket #92885:

My AS version is Android Studio Chipmunk| 2021.2.1 Patch 1. Please use this version.

°°°

CartinShield commented 6 months ago

Did you solve this problem? I use the same AS version. I tried many versions of Gradle and I find using gradle 7.2 will successfully configure this app, but I don't know if it works on your situation. And if there is a better solution hope someone can tell me please.

Sugar666666tang commented 5 months ago

这是来自QQ邮箱的自动回复邮件。   您好,您的邮件我已收到。

SummerRainCity commented 4 months ago

你好,我这里已经按照你的要求使用对应的AS版本Android Studio Chipmunk| 2021.2.1 Patch 1.,其中gradle 6.7.1版本,一些按照您的要求来办的,但是依然出现一下错误,无法编译运行,你可以帮助我吗? Screenshot_20240303_065455_org easydarwin easyplayer_edit_839245105475063