由于翻译错误,Apktool 构建失败

Apktool build fails due to Translation error

我使用 Apktool 反编译了一个 APK 文件并做了一些更改,然后我尝试重新编译它,但出现了这个错误。

aapt: warning: string 'auth_client_needs_enabling_title' has no default translation in C:\Users\Dell\android-sdks\platform-tools\MageSimi\SimiCart_com.magestore.simicart_2.0_5\res; found: af am ar be bg ca cs da de el en_GB en_IN es es_US et_EE fa fi fr fr_CA hi hr hu hy_AM in it iw ja ka_GE km_KH ko lo_LA lt lv mn_MN ms_MY nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv sw th tl tr uk vi zh_CN zh_HK zh_TW zu
aapt: warning: string 'auth_client_needs_installation_title' has no default translation in C:\Users\Dell\android-sdks\platform-tools\MageSimi\SimiCart_com.magestore.simicart_2.0_5\res; found: af am ar be bg ca cs da de el en_GB en_IN es es_US et_EE fa fi fr fr_CA hi hr hu hy_AM in it iw ja ka_GE km_KH ko lo_LA lt lv mn_MN ms_MY nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv sw th tl tr uk vi zh_CN zh_HK zh_TW zu
aapt: warning: string 'auth_client_needs_update_title' has no default translation in C:\Users\Dell\android-sdks\platform-tools\MageSimi\SimiCart_com.magestore.simicart_2.0_5\res; found: af am ar be bg ca cs da de el en_GB en_IN es es_US et_EE fa fi fr fr_CA hi hr hu hy_AM in it iw ja ka_GE km_KH ko lo_LA lt lv mn_MN ms_MY nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv sw th tl tr uk vi zh_CN zh_HK zh_TW zu
aapt: warning: string 'auth_client_play_services_err_notification_msg' has no default translation in C:\Users\Dell\android-sdks\platform-tools\MageSimi\SimiCart_com.magestore.simicart_2.0_5\res; found: af am ar be bg ca cs da de el en_GB en_IN es es_US et_EE fa fi fr fr_CA hi hr hu hy_AM in it iw ja ka_GE km_KH ko lo_LA lt lv mn_MN ms_MY nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv sw th tl tr uk vi zh_CN zh_HK zh_TW zu
aapt: warning: string 'auth_client_requested_by_msg' has no default translation in C:\Users\Dell\android-sdks\platform-tools\MageSimi\SimiCart_com.magestore.simicart_2.0_5\res; found: af am ar be bg ca cs da de el en_GB en_IN es es_US et_EE fa fi fr fr_CA hi hr hu hy_AM in it iw ja ka_GE km_KH ko lo_LA lt lv mn_MN ms_MY nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv sw th tl tr uk vi zh_CN zh_HK zh_TW zu
aapt: warning: string 'auth_client_using_bad_version_title' has no default translation in C:\Users\Dell\android-sdks\platform-tools\MageSimi\SimiCart_com.magestore.simicart_2.0_5\res; found: af am ar be bg ca cs da de el en_GB en_IN es es_US et_EE fa fi fr fr_CA hi hr hu hy_AM in it iw ja ka_GE km_KH ko lo_LA lt lv mn_MN ms_MY nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv sw th tl tr uk vi zh_CN zh_HK zh_TW zu

我查看了我的资源文件,那里已经有可用的翻译。 如何修复此错误。请帮助我在紧迫的期限内。 非常感谢您

确保在“C:...\\res\values\strings.xml”文件中有 <string ...>...</string> 记录。您应该能够使用您最喜欢的 XML 编辑器使用 Windows 资源管理器打开此文件,或者如果您通过单击未标记标志且没有括号的 strings.xml 文件来使用对其名称的权利。在以下屏幕截图中,文件突出显示:

在此 XML 文件中,您必须为资源 auth_client_needs_installation_titleauth_client_play_services_err_notification_msgauth_client_needs_update_titleauth_client_requested_by_msg 和 [=15 添加字符串记录=]

如果您要将 ADT 项目迁移到新的 Android Studio,正如 Lukas 提到的,您的 res 文件夹中的 strings.xml 需要定义以下附加字符串。

<string name="auth_client_needs_enabling_title"></string>
<string name="auth_client_needs_installation_title"></string>
<string name="auth_client_needs_update_title"></string>
<string name="auth_client_play_services_err_notification_msg"></string>
<string name="auth_client_requested_by_msg"></string>
<string name="auth_client_using_bad_version_title"></string>

如果你的资源文件夹没有出现,右击模块然后select "Open Module Settings"然后找到模块然后select你的资源文件夹(我的名字叫res)及以上在 "Mark as:" select 资源中。