简体   繁体   中英

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.

$ 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

Android SDK and Android Studio located in /usr/local/ folder

You will either have to move it to your home directory (that involves reinstall).

Or run ionic build commands with sudo

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM