Android 使用Visual Studio构建APK时给我提供了无效的资源目录名。为什么?
在Visual Studio中构建Cordova解决方案时,会出现以下错误:Android 使用Visual Studio构建APK时给我提供了无效的资源目录名。为什么?,android,cordova,build,Android,Cordova,Build,在Visual Studio中构建Cordova解决方案时,会出现以下错误: \platforms\android\res\drawable-landhdpi: Error: Invalid resource directory name. 我认为我没有改变任何关于这些资源的事情。您可以在下面找到上述目录的内容: 。\platforms\android\res: 这在Cordova CLI:6.1.1上。我认为这就是问题所在,如果您有一个名为“drawable land hdpi”的目录,
\platforms\android\res\drawable-landhdpi: Error: Invalid resource directory name.
我认为我没有改变任何关于这些资源的事情。您可以在下面找到上述目录的内容:
。\platforms\android\res:
这在Cordova CLI:6.1.1上。我认为这就是问题所在,如果您有一个名为“drawable land hdpi”的目录,它应该更改为“drawable land hdpi”。这是正确的格式。在构建过程中,Visual Studio将使用特定android/res中的此文件夹自动创建“平台”文件夹。你知道我该怎么控制吗?