代码之家  ›  专栏  ›  技术社区  ›  Narendra

NativeScript应用程序名称中的撇号不适用于Android/ios部署

  •  0
  • Narendra  · 技术社区  · 7 年前

    我正在开发一个NativeScript应用程序,我想在google play store上发布该应用程序,并在其名称中使用撇号('s),例如Naren的应用程序。 它在ios上运行良好,因为我必须更改info.plist文件,如中所述 this 例子。

    以下是我的AndroidManifest.xml中的代码

    <application
            android:name="com.tns.NativeScriptApplication"
            android:allowBackup="true"
            android:icon="@drawable/icon"
            android:label="@string/app_name"
            android:theme="@style/AppTheme">
    

    和strings.xml(在values和values-v21文件夹中)

    <resources>
        <string name="app_name">Naren's Orders Dev</string>
        <string name="title_activity_kimera">Naren's Orders Dev</string>
    </resources>
    

    以前有人经历过吗?

    1 回复  |  直到 7 年前
        1
  •  2
  •   Narendra    7 年前

    我在android资源上找到了解决方案 here

    处理特殊字符

    单引号(')
    下列任何一项:

    &apos;
    
    \'
    
    Enclose the entire string in double quotes ("This'll work", for example)
    

    &apos; 首先但那是 工作但是 \'s 正在工作。张贴在这里,因为它可能对其他人有用。

    编辑:

    &载脂蛋白; 正在使用ios,但它正在为此减少空白 Replace normal space with unicode &#x2007;