[英]Ionic app build issue
I am new to ionic. 我是离子的新手。 I have developed sample application ionic.
我开发了样品应用离子。 When I try to execute below command it gives gradle error.
当我尝试执行下面的命令时,它会给出gradle错误。
$ ionic build android
Below is the build error: 以下是构建错误:
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 version is 3.3 Gradle版本是3.3
Android SDK and Android Studio located in /usr/local/ folder Android SDK和Android Studio位于/ usr / local /文件夹中
You will either have to move it to your home directory (that involves reinstall). 您将不得不将其移动到您的主目录(涉及重新安装)。
Or run ionic build commands with sudo 或者使用sudo运行ionic build命令
sudo ionic build android
You could technically change permissions of the specific sdk and studio folders but it is not advisable especially in /usr directory. 您可以在技术上更改特定sdk和studio文件夹的权限,但特别是在/ usr目录中不建议这样做 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.