Recently I have Updated my Android Studio from 2.2.3 to 2.3.0
project was running fine in 2.2.3 but after updating project dependency classpath from 2.2.3 to 2.3.0
getting lots of Missing Translations error from string.xml
.
Can anyone tell me why it is happening and How to Resolve these Errors ?
Have many methods to fix this:
First method:
Add to build.gradle:
android { lintOptions { disable 'MissingTranslation' } }
Second method:
It's the ignore
attribute of the tools
namespace in your strings file, as follows:
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation" > <!-- your strings here; no need now for the translatable attribute --> </resources>
Third method:
In your ADT
go to window->Preferences->Android->Lint Error Checking
Find there Missing Translation
and change its Severity
to Warning
.
Reference link:
http://www.fasteque.com/missingtranslation-issue-for-release-builds/
Hope it helpful for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With