Android resource linking failed while trying to run the sample app
CompletedWhen I try to build the sample app I encounter these errors:
ERROR:C:\Users\adipe\AndroidStudioProjects\Mobile-SDK-Android-V5\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:\Users\adipe\AndroidStudioProjects\Mobile-SDK-Android-V5\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:\Users\adipe\AndroidStudioProjects\Mobile-SDK-Android-V5\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:\Users\adipe\AndroidStudioProjects\Mobile-SDK-Android-V5\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've tried adding: android.nonTransitiveRClass=false
to SampleCode-V5/android-sdk-v5-as/gradle.properties
and rebuilding and it didn't work.
I've searched for these values in SampleCode-V5/android-sdk-v5-uxsdk/build/intermediates/incremental/debug/packageDebugResources/merged.dir/values-zh-rCN/values-zh-rCN.xml and they weren't there. I've tried adding my own values:
<string name="setting_ui_hd_channel_auto">Auto</string>
<string name="setting_ui_hd_channel_custom">Custom</string>
<string name="hdmi_system_setting_mode_same">Same as App</string>
<string name="hdmi_system_setting_mode_fpv">FPV Mode</string>
But when I rebuild this file gets overidden and these values get deleted.
How can I fix that? What did I do wrong? I've followed the exact steps in the official guide:
https://developer.dji.com/doc/mobile-sdk-tutorial/en/quick-start/run-sample.html
Please sign in to leave a comment.
Comments
2 comments