繁体   English   中英

由于翻译错误,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>记录。 您应该能够使用Windows资源管理器,使用自己喜欢的XML编辑器打开该文件,或者如果您使用的话,可以通过单击没有标记并且名称无括号的strings.xml文件来打开。 在以下屏幕截图中,文件突出显示:

AndroidStudio中的默认strings.xml

在此XML文件中,您必须添加以下字符串的记录:资源auth_client_needs_installation_titleauth_client_play_services_err_notification_msgauth_client_needs_update_titleauth_client_requested_by_msgauth_client_using_bad_version_title

如果要将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>

如果没有出现资源文件夹,请右键单击该模块,然后选择“打开模块设置”,然后找到该模块,然后选择您的资源文件夹(我的名称为res),并在“标记为:”上方选择“资源”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM