Build Failed After Importing Empty Project MSDK
CompletedHello DJI Developer Community,
I've encountered a build failure issue after following the steps for importing an empty project MSDK as outlined in the DJI Mobile SDK Quick Start Guide.
Despite adhering to the documentation instructions, I'm facing two main errors during the build process:
-
mergeDebugResources Task Failure
-
Error Message:
Can't determine type for tag '<macro name="m3_comp_assist_chip_container_shape">?attr/shapeAppearanceCornerSmall</macro>'
- This seems to be related to the Material Design library (version 1.10.0) and possibly an incompatibility with my project's setup.
-
Error Message:
-
checkDebugAarMetadata Task Failure
-
Error Message:
The minCompileSdk (34) specified in a dependency's AAR metadata is greater than this module's compileSdkVersion (android-29). Dependency: androidx.navigation:navigation-common:2.7.5.
- It appears that my current
compileSdkVersion
is lower than required by some dependencies.
-
Error Message:
My Development Environment:
- Android Studio Version: Android Studio Chipmunk 2021.2.1 Patch 1.
- DJI SDK Version: 5.7.1
- compileSdkVersion: android-29
- Material Design Library Version: 1.10.0
- Android Gradle Plugin version is 4.2.2.
- Gradle version is 6.9.
I'm reaching out to the community for guidance on how to resolve these issues. Has anyone else experienced similar problems? Any suggestions on how to address these build errors would be greatly appreciated.
Thank you in advance for your help and insights!
Best regards,
Zeus.
-
You'll need to modify the compileSdkVersion to 34. However, please note that the Mobile SDK is only compatible up to version 33. Therefore, you may need to adjust the version of androidx.navigation. Regarding the mergeDebugResources Task Failure, it is related to the Material Design Library you are using.
Please sign in to leave a comment.
Comments
1 comment