-2

Please help me to solve this problem. I don't know how to solve this problem because I've already tried all methods that I know of, but I'm still getting a Gradle error.

Please Look At This Screenshot

I've already added the new system variable name : _JAVA_OPTIONS and the value : -Xmx512M. The error is still same. Please help me if you can.

$ ionic cordova platform list

cordova platform ls

You have been opted out of telemetry. To change this, run: cordova telemetry on.

Installed platforms: android 6.4.0
Available platforms: browser ~5.0.1
ios ~4.5.4
osx ~4.0.1
windows ~5.0.0
www ^3.12.0
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
LulzSec
  • 1
  • 5
  • Please add code, errors and data as **text** ([using code formatting](//stackoverflow.com/editing-help#code)), not images. Images: A) don't allow us to copy-&-paste the code/errors/data for testing; B) don't permit searching based on the code/error/data contents; and [many more reasons](https://meta.stackoverflow.com/a/285557). In general, code/errors/data in text format >>>> code/errors/data as an image >> nothing. Images should only be used, *in addition to text in code format*, if having the image adds something significant that is not conveyed by just the text code/error/data. – Makyen Mar 30 '18 at 22:20

1 Answers1

0

This is your error:

You have not accepted the license agreements of the following sdk components [Android SDK Platform 26]

You must accept a license in the SDK Manager, please check theses answers

zgluis
  • 3,021
  • 2
  • 17
  • 22
  • LulzSec@HyperProject MINGW32 / $ cd $ANDROID_HOME/tools/bin LulzSec@HyperProject MINGW32 ~/AppData/Local/Android/Sdk/tools/bin $ ./sdkmanager --licenses bash: ./sdkmanager: No such file or directory so how to solve this problem ? – LulzSec Mar 29 '18 at 01:39
  • Try opening the sdkmanager.exe that should be in your ANDROID_HOME/sdk folder, if it does not open, try using the Android Studio UI, and then download/update the SDK Platform 26, make sure to accept the license when asked – zgluis Mar 29 '18 at 02:07
  • i've already update and accept license in android studio . Now i'm get new error . Please look at this screenshot : https://i.stack.imgur.com/VfxcB.png – LulzSec Mar 29 '18 at 02:13
  • so how to solve this problem https://i.stack.imgur.com/VfxcB.png ? you know ? hope you can help me . thank you – LulzSec Mar 29 '18 at 02:57
  • I've never seen that error, try removing and adding the platform, sometimes it gets corrupted. Which cordova version are you using? – zgluis Mar 29 '18 at 03:11
  • I'm use Condova : 8.0.0 | cordova-android@6.4.0 . i've already add again platform but problem still same. – LulzSec Mar 29 '18 at 03:36