"auth_client_using_bad_version_title" is translated here but not found in default locale
Asked Answered
S

14

28

I'm forced to use Google Play service (I need Location Service). So, after I wrote all code and tested application on device, i tried to export signed application. And all I got is Lint errors like (I even changed MissingTranslation erros in Lint from fatal to warning)

"auth_client_using_bad_version_title" 
is translated here but not found in default locale

And this error repeats in all "values-" folders I know that I can disable lint checking before exporting application. But is there any way to do it right without any hacks, errors and curses on Google developers? So I think this case in one of two things:

  1. I'm idiot or
  2. Google publish crap that doesn't allow to use another Google crap etc.
Sec answered 23/5, 2014 at 5:28 Comment(3)
Just I updated google-play-services lib then I'm getting same problemSlashing
There seems to be a bug where lint will flag this when your strings file is in the default values folder. I started receiving the error erroneously when I started using feature modules.Fleecy
Try this method: https://mcmap.net/q/152605/-localisation-error-39-is-translated-here-but-not-in-default-locale-39Aurlie
S
11

I got the temporary solution.

copy auth_strings.xml from values-en-rIN (locale values for INDIA you can use any locale) and paste it in default values folder.

Slashing answered 23/5, 2014 at 5:44 Comment(0)
R
27

On the top of your strings file, change the <resources> to this:

<resources tools:ignore="ExtraTranslation" xmlns:tools="http://schemas.android.com/tools">
Ruvalcaba answered 28/5, 2016 at 21:15 Comment(0)
E
22

Looks like some caching issue of Android Studio. For me File -> Invalidate caches/restarts fixed the issue.

Ember answered 2/11, 2018 at 12:0 Comment(3)
I got this error after merge confilct in Git. Build > Clean Project didn't help, but Invalidate caches did.Abbasid
Unfortunately, this is the go-to solution for most Android Studio issues. Worked for me.Norrisnorrv
This is what you need to do if you added new strings to your "default" strings folder and you get this message.Laquitalar
C
13

Goto

Window->preferences->Android->Lint Error Checking -->Correctness: Messages--> Extra Translations ------------>make it Fatal to Warning

Chapell answered 6/7, 2014 at 7:50 Comment(0)
S
11

I got the temporary solution.

copy auth_strings.xml from values-en-rIN (locale values for INDIA you can use any locale) and paste it in default values folder.

Slashing answered 23/5, 2014 at 5:44 Comment(0)
S
9

In Android Studio, Go to File> Invalidate Caches / Restart..., and click on Invalidate and Restart.

Skipp answered 4/2, 2019 at 6:11 Comment(0)
J
5

So the 'default locale' is the one with just 'values' with no modifiers like -af, -am, -en etc. The problem happens because there is no auth_strings.xml file in that folder so there is no fallback option and hence the error.

To fix it just copy the auth_strings.xml file from another of the values folders to be your default language. I'd suggest a common language like English or Spanish. I used English. This fixes the error for me. I guess they just forgot to put in a default language.

Juba answered 27/5, 2014 at 13:36 Comment(1)
In my case the strings.xml is located in values folder without any modifier and I still get the error.Dahliadahlstrom
D
5

i had the same problem.. and doing a "clean project" fixed the issue

Dimaggio answered 23/11, 2018 at 18:30 Comment(0)
G
1

All I did was to copy the 'auth_strings.xml' file from the English folder to the values folder as the default version was missing.

Guideline answered 2/6, 2014 at 10:6 Comment(0)
A
1

just change extra translation from fatal to warning.It worked for me.

Window--->Preferences--->Lint Error checking--->Extra Translation(in ID column)

Ancona answered 6/7, 2014 at 16:20 Comment(0)
T
0

In case, if you want to just pass the release process;

In Android Studio, through Gradle, you can disable "Lint Error Checking" during the release process.

Open your build.gradle(app) file and add the following code snippet inside the android tag.

    lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
}
Tonsillotomy answered 17/5, 2016 at 7:54 Comment(0)
E
0

Make sure you have the string in the default locale. If you have it, try to delete the error line in the strings.xml and undo the deletion. If the string.xml is from a lib, delete the lib, sync, undo the deletion and sync again.

If the above step did not work, clean the project.

Expect answered 8/1, 2019 at 19:45 Comment(0)
H
0

I had the same problem that I couldn't solve. I just restart Android Studio, and had no error anymore.

Hippolytus answered 31/1, 2019 at 14:4 Comment(0)
M
0

A very quick solution mentioned here for this-

Simply remove the offending line and re-add it.

Mate answered 8/10, 2019 at 6:18 Comment(0)
G
0

Ensure you have the string in the default area. In the event that you have it, attempt to erase the mistake line in the strings.xml and fix the cancellation. On the off chance that the string.xml and fix the cancellation. On the off chance that the string.xml is from a lib, erase the lib, match up, fix the erase and adjust once more.

On the off chance that the above advance didn’t work, clean the venture.

Gibbeon answered 8/10, 2019 at 6:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.