簡體   English   中英

離子應用程序構建問題

[英]Ionic app build issue

我是離子的新手。 我開發了樣品應用離子。 當我嘗試執行下面的命令時,它會給出gradle錯誤。

$ ionic build android

以下是構建錯誤:

Error: /home/myapp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred starting process 'Gradle build daemon'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Gradle版本是3.3

Android SDK和Android Studio位於/ usr / local /文件夾中

您將不得不將其移動到您的主目錄(涉及重新安裝)。

或者使用sudo運行ionic build命令

sudo ionic build android

可以在技術上更改特定sdk和studio文件夾的權限,但特別是在/ usr目錄中不建議這樣做

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM