Mobile-SDK-Android icon indicating copy to clipboard operation
Mobile-SDK-Android copied to clipboard

run demo failed

Open liebebaby opened this issue 2 years ago • 8 comments

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'.

liebebaby avatar Oct 16 '23 10:10 liebebaby

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.

°°°

dji-dev avatar Oct 17 '23 04:10 dji-dev

hello, I got this error after use gradle 6.7.1. Can you please help me? 截屏2023-10-17 13 57 54

liebebaby avatar Oct 17 '23 05:10 liebebaby

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.

°°°

dji-dev avatar Oct 17 '23 13:10 dji-dev

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

liebebaby avatar Oct 19 '23 11:10 liebebaby

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.

°°°

dji-dev avatar Oct 20 '23 02:10 dji-dev

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.

CartinShield avatar Dec 11 '23 06:12 CartinShield

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

Sugar666666tang avatar Jan 12 '24 09:01 Sugar666666tang

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

SummerRainCity avatar Mar 02 '24 22:03 SummerRainCity