SDK Sample code compile error
Hi,
When building the project, as shown in the tutorial, I have these errors:
ERROR:C:\workspace\Mobile-SDK-Android-V5-dev-sdk-main\SampleCode-V5\android-sdk-v5-uxsdk\build\intermediates\incremental\debugAndroidTest\mergeDebugAndroidTestResources\merged.dir\values\values.xml:148: AAPT: error: resource string/setting_ui_hd_channel_auto (aka dji.v5.ux.test:string/setting_ui_hd_channel_auto) not found.
ERROR:C:\workspace\Mobile-SDK-Android-V5-dev-sdk-main\SampleCode-V5\android-sdk-v5-uxsdk\build\intermediates\incremental\debugAndroidTest\mergeDebugAndroidTestResources\merged.dir\values\values.xml:149: AAPT: error: resource string/setting_ui_hd_channel_custom (aka dji.v5.ux.test:string/setting_ui_hd_channel_custom) not found.
ERROR:C:\workspace\Mobile-SDK-Android-V5-dev-sdk-main\SampleCode-V5\android-sdk-v5-uxsdk\build\intermediates\incremental\debugAndroidTest\mergeDebugAndroidTestResources\merged.dir\values\values.xml:152: AAPT: error: resource string/hdmi_system_setting_mode_same (aka dji.v5.ux.test:string/hdmi_system_setting_mode_same) not found.
ERROR:C:\workspace\Mobile-SDK-Android-V5-dev-sdk-main\SampleCode-V5\android-sdk-v5-uxsdk\build\intermediates\incremental\debugAndroidTest\mergeDebugAndroidTestResources\merged.dir\values\values.xml:153: AAPT: error: resource string/hdmi_system_setting_mode_fpv (aka dji.v5.ux.test:string/hdmi_system_setting_mode_fpv) not found.
I'm running:
Android Studio Iguana | 2023.2.1 Patch 1
Runtime version: 17.0.9+0--11185874 amd64
Any idea?
-
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?
-
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.
Please sign in to leave a comment.
Comments
8 comments