0

我剛剛使用Visual Studio 2015 Enterprise RC從模板創建了一個空白應用程序,當我將屏幕方向更改爲縱向時,構建在Android上失敗,並且出現以下錯誤。無法更改VS2015上的屏幕方向RC Apache Cordova工具

[aapt] C:\ Users \ HasanDogu \ Documents \ Visual Studio 2015 \ Projects \ BlankCordovaApp3 \ BlankCordovaApp3 \ platforms \ android \ ant-build \ AndroidManifest.xml:6:error:Error:String types not allowed(at 'screenOrientation',值爲'Portrait')。

「肖像」中第一個字母的大小寫似乎不是screenOrientation的有效條目。有沒有解決這個問題的方法?

回答

2

我已經問過這個問題了,得到微軟的迴應,在視圖代碼模式下打開config.xml並將肖像改爲肖像。