2017-03-16 268 views
0

C:\用戶\ ADMIN \文件\ dev的\ Breakingnews \樹幹\ Tawary \平臺\機器人\ RES \值\ strings.xml中:錯誤:實測值項字符串/ google_app_id一次以上時離子2執行機器人失敗

:mergeDebugResources失敗

失敗:生成失敗並出現異常。

  • 出了什麼問題:

構建失敗

總時間:12.285秒

執行失敗的任務 ':mergeDebugResources'。

C:\Users\ADMIN\Documents\dev\Breakingnews\trunk\Tawary\platforms\android\res\values\strings.xml: Error: Found item String/google_app_id more than one time

  • 嘗試: 與--stacktrace選項獲取堆棧跟蹤運行。使用--info或--debug選項運行以獲取更多日誌輸出。

錯誤:cmd:命令失敗,退出代碼爲1錯誤輸出: 注意:某些輸入文件使用或覆蓋棄用的API。 注意:使用-Xlint:deprecation重新編譯以獲取詳細信息。 注意:某些輸入文件使用或覆蓋棄用的API。 注意:使用-Xlint:deprecation重新編譯以獲取詳細信息。

失敗:生成失敗,出現異常。

  • 出了什麼問題: 執行失敗的任務 ':mergeDebugResources'。

    C:\Users\ADMIN\Documents\dev\Breakingnews\trunk\Tawary\platforms\android\res\values\strings.xml: Error: Found item String/google_app_id more than one time

  • 嘗試: 與--stacktrace選項獲取堆棧跟蹤運行。使用--info或--debug選項運行以獲取更多日誌輸出。

+0

你能爲我們提供strings.xml嗎? – JoeriShoeby

+0

您是否使用phonegap-plugin-push?檢查https://github.com/phonegap/phonegap-plugin-push/issues/679 –

+0

對不起,錯誤的問題鏈接https://github.com/phonegap/phonegap-plugin-push/issues/1660 –

回答

0

錯誤的原因是在路徑\你的項目root \ platforms \ android \ res \ values然後在strings.xml中檢查,有兩個具有相同的屬性。你需要根據你的插件定義來解決這個問題。

相關問題