Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio showing Errors(Missing Translation) after Updating

Tags:

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.

enter image description here

Can anyone tell me why it is happening and How to Resolve these Errors ?

like image 976
Kapil Rajput Avatar asked Mar 07 '17 10:03

Kapil Rajput


Video Answer


1 Answers

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.

like image 168
Ave Avatar answered Sep 19 '22 22:09

Ave