SDK Sample code compile error

已完成

评论

10 条评论

  • DJI Developer Support
    You can try adding 'android.nonTransitiveRClass = false' to your gradle.properties file to resolve this issue.
    0
    评论操作 固定链接
  • EDZOA BADOUANA Cédric

    Hi, 

    I have the same issue. I tried adding the configuration you provide but it doesn't resolve my issue

    0
    评论操作 固定链接
  • Amitai Fensterheim

    The string values are missing... Should i add the values? what should they be?

    0
    评论操作 固定链接
  • yating.liao

    These error-causing resources can actually be found within the MSDK.After adding 'android.nonTransitiveRClass = false', you can check if the Gradle version is 7.6.2, and we recommend adjusting your JDK version to 17.

    0
    评论操作 固定链接
  • Amitai Fensterheim

    Hi, 

    After adding 'android.nonTransitiveRClass = false', you can check if the Gradle version is 7.6.2, and we recommend adjusting your JDK version to 17.

    Didn't help, same errors. Any idea?

    I also realized that the Mobile-SDK-Android-V5 project is in a Dev branch in the repo. Does this mean that this demo may be buggy? What is the recommended sample project and tutorial recommended for learning the UXSDK today? Should i be using Android-UXSDKDemo?

    0
    评论操作 固定链接
  • DJI Developer Support
    If you are still encountering this issue, I recommend rebuilding this project. The "dev" is a name, it is indeed the latest sample code branch released by DJI. For UXSDK, the UXSDK of MSDK V5 is an open-source library, and you can see all the code in the sample code. Android-UXSDKDemo is the UXSDK sample code for MSDK V4.
    0
    评论操作 固定链接
  • Amitai Fensterheim

    Rebuilding the project didn't help.. 

    0
    评论操作 固定链接
  • yating.liao

    Could you please send us screenshots of these two configurations?

     

    Could you confirm if you are using a computer system? We have not conducted any testing on the Linux system.

    As a reference, this is the version of Android Studio I am using.

     

    0
    评论操作 固定链接
  • EDZOA BADOUANA Cédric

    I found the solution of my issue.

    Try to check version of sofware and libraries. for me it is :

    • android-studio-2022.3.1.18-windows
    • gradle version : 7.6.2
    • android gradle plugin version: 7.4.2
    • gradle jdk: correto 11

    But it wasn't the problem for me. The problem was that there was a string variable in my values/string.xml that was added to have a dynamic text in one kotlin class. This could be an avenue of research for you.

    Also try clean and rebuild project

    0
    评论操作 固定链接
  • DJI Developer Support
    The information missing in the string file used by the sample code is because this information is not supposed to be placed in the MSDK. I have already reported this issue to the team, and the resources file of UXSDK should be placed within the UXSDK library. However, even without making changes, it can still be compiled. If you are still unable to compile, perhaps adding this part to the string file is also a solution.
    0
    评论操作 固定链接

请先登录再写评论。