在手機上執行 click 套件時出現錯誤:「沒有這樣的目錄」。

在手機上執行 click 套件時出現錯誤:「沒有這樣的目錄」。

在手機上執行 click 套件時出現錯誤:「沒有這樣的目錄」。

在我的桌面上它可以工作。不過在手機上測試了一下,還是不行。此錯誤源自於匯入名為「Components」的資料夾。

在此輸入影像描述

我怎樣才能解決這個問題?

答案1

我轉到我的 .pro 檔案並發現了這個:

#specify where the qml/js files are installed to
qml_files.path = /Poker-Puzzle
qml_files.files += $${QML_FILES}

改成這樣:

#specify where the qml/js files are installed to
qml_files.path = /Poker-Puzzle/QML/components
qml_files.files += $${QML_FILES}

相關內容