question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: Couldn't find any file to download

See original GitHub issue

Describe the bug I tried setting up Crowdin CLI for an android project. I came up with a configuration file shown below to download translation files.

To Reproduce Steps to reproduce the behavior:

  1. Configuration file: ‘…’
"base_path" : "."
"base_url" : "https://api.crowdin.com"

"preserve_hierarchy": true

files: [
 {
 "source" : "/values/*.*",
 "translation" : "/values-%android_code%/%original_file_name%",
 "translation_replace": {
      "pt_BR": "pt",
  },
 }
]
  1. Execute CLI command:
crowdin list sources
crowdin download ##Credentials & config
  1. See an error
I got this warning without any translations file added:
Couldn't find any file to download
Downloaded translations don't match the current project configuration. The translations for the following sources will be omitted (use --verbose to get the list of the omitted translations):

Expected behavior I expect to be able to pull translations.

crowdin list sources works by listing all the english string files but crowdin download does not seem to work as expected.

Environment:

  • OS: Mac
  • Version: 3.7.8

Screenshots If applicable, add screenshots to help explain your problem.

Additional context I see that a zip file got downloaded and extracted but this happens in split seconds, and then the extracted folder is no longer found.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
andrii-bodnarcommented, May 17, 2022

@Afolayan you could use the Language Mapping feature to change the language code for this placeholder to the preferred one.

1reaction
andrii-bodnarcommented, May 17, 2022

@Afolayan thank you!

Please see this comment and below. Your issue is also related to the Resulting file after translations export.

For CLI this export pattern should be the same as the translation pattern in the crowdin.yml configuration file. CLI passing it during the sources upload, but in case of files were uploaded in a different way, it should be specified manually.

It might affect some existing integrations because files structure will change in an exported archive with translations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Downloaded files not showing up in My Files
Is this problem occurring only when you try to download something using the Google app? If so, go to Settings>Apps, select Google, then ......
Read more >
Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >
Can't Open A File on Android? Here Are Steps You Can Take
1. Check If Its A Genuine File Or A Malware · 2. Reboot Your Phone · 3. Download An App That Can Help...
Read more >
How to fix Can't find an application to open this file in Android
How to fix Can't find an application to open this file in Android |Tablet-unable to open this file type android -can find an...
Read more >
Can't find file downloaded by download manager in android
// Getting path to store the file String path = root.getAbsolutePath(); path += curr.getName(); request.setDestinationInExternalPublicDir(path, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found