No matching variant of project :android-sdk-v5-uxsdk was found
已完成I was following Empty Project Import MSDK tutorial, I did everything almost the same way. Finally I finished the tutorial but I got the error below. What should I do know? Thank you.
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve project :android-sdk-v5-uxsdk.
Required by:
project :app
> No matching variant of project :android-sdk-v5-uxsdk was found. The consumer was configured to find a component for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.2', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
* Try:
> Creating consumable variants is explained in more detail at https://docs.gradle.org/8.10.2/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs.
> Review the variant matching algorithm at https://docs.gradle.org/8.10.2/userguide/variant_attributes.html#sec:abm_algorithm.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 120ms
-
Dear Developer, Hello and thank you for reaching out to DJI Innovations. Currently, it is the Chinese Spring Festival holiday period, and the corresponding engineers are on leave. We will get back to you as soon as possible once the holiday ends. We hope that our solution meets your needs satisfactorily. We appreciate your email and wish you a wonderful day! Best Regards, DJI Innovations SDK Technical Support Team -
Dear Developer, Hello and thank you for reaching out to DJI Innovations. The problem seems to be related to the environment configuration, It seems that you are quoting something less in the MSDK library, you need to compare the sample build.gradle file, and copy all the contents of packagingOptions. We hope that our solution meets your needs satisfactorily. We appreciate your email and wish you a wonderful day! Best Regards, DJI Innovations SDK Technical Support Team
请先登录再写评论。
评论
2 条评论