We provide complete mobile and web apps development solutions

Wednesday, August 1, 2018

platforms/android/gradlew: Command failed with exit code EACCES

srinivas$ ionic cordova plugin add cordova-plugin-x-toast
> cordova plugin add cordova-plugin-x-toast --save
Installing "cordova-plugin-x-toast" for android
ANDROID_HOME=/Users/srinivas/Library/Android/sdk/
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home
Subproject Path: CordovaLib
Failed to install 'cordova-plugin-x-toast': Error: /Users/srinivas/v1/platforms/android/gradlew: Command failed with exit code EACCES
    at ChildProcess.whenDone (/Users/srinivas/Documents/v1/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Error: /Users/srinivas/Documents/v1/platforms/android/gradlew: Command failed with exit code EACCES
[ERROR] An error occurred while running subprocess cordova.
       
        cordova plugin add cordova-plugin-x-toast --save exited with exit code
        1.
       
        Re-running this command with the --verbose flag may provide more
        information.
Srinivass$ cd ..

solution: 

Provide necessary rights to the  project folder.
Srinivass$ chmod -R 777  v1/

Related Posts:

  • Top Android Games !-- google_ad_client = "ca-pub-4378340310740210"; /* mobengineers-textadd */ google_ad_slot = "5441607071"; google_ad_width = 336; google_ad_height =… Read More
  • Get Gps Coordinates in android package com.example.gps;import android.location.Location; import android.location.LocationManager;import android.location.LocationListener;import and… Read More
  • What is Serialization !-- google_ad_client = "ca-pub-4378340310740210"; /* Mobengineer_wide_textadd */ google_ad_slot = "5271006677"; google_ad_width = 728; google_ad_heig… Read More
  • Bitmap to Base64 conversion ByteArrayOutputStream baos = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG,100,baos); byte[] b = baos.toByteArray(… Read More
  • WebView in Android WebView displays web pages. package com.example.webview;import android.os.Bundle;import android.app.Activity;import android.webkit.WebSettings;impo… Read More

2 comments:

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts