Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/191.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 使用Visual Studio构建APK时给我提供了无效的资源目录名。为什么?_Android_Cordova_Build - Fatal编程技术网

Android 使用Visual Studio构建APK时给我提供了无效的资源目录名。为什么?

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”的目录,

在Visual Studio中构建Cordova解决方案时,会出现以下错误:

\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中的此文件夹自动创建“平台”文件夹。你知道我该怎么控制吗?