1. Are you ready for the Galaxy S20? Here is everything we know so far!

File name character cn on Android Studio when build apk

Discussion in 'Android Development' started by kamenrider, Jul 19, 2017.

  1. kamenrider

    kamenrider Lurker
    Thread Starter

    I had a file android project with file name chinese character in layout. And i want to build apk but got this error

    E:\app\src\main\res\layout\????.xml: Error: '?' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

    Is Android studio cant build apk with chinese character file named? i already set to UTF-8. or may theres another setting to android studio for read chinese character?

    1. Download the Forums for Android™ app!


  2. mikedt

    mikedt 你好

    I'm not a developer, but that sounds like it could be correct. Chinese app developers very probably use Pinyin spelling(minus the diacritics) instead of actual Chinese characters, when developing in Android Studio.
    kamenrider likes this.

Share This Page