I’d like to know, from the Gradle build perspective, why I’m getting
You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 28.0.3, Android SDK Platform 28].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
This is after I try to do a gradle clean from the command line using:
C:\Dev>SET ANDROID_HOME=C:/android-sdk&&SET PATH=C:/gradle-4.0/bin;%PATH%&&SET JAVA_HOME=C:/Program Files/Java/jdk1.8.0_31&&cd C:/Android/dev/ProgramName&&gradle clean
What exactly is Gradle looking at, that’s telling it that one, or more, of the license agreements haven’t been accepted?
I think that part of, or THE problem, is that the Android SDK’s sdkmanager isn’t properly handling the license agreements.
I’m doing: sdkmanager --licenses and accepting them all,
and it’s responding with “All SDK package licenses accepted.”
But when I try to do the gradle clean, it keeps getting that error message.
I’ve tried using different Gradle versions, and the same thing is happening.
Also, it seems to be happening mostly with the newer “platforms;android-28”, it was working fine with earlier API targets.
I think if I knew what Gradle was looking at, or checking, I might get a handle on how to solve the issue. Or is there anything I could add to my build.gradle that might help?