build failed after run build command
Android Studio project detected
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_172
studio
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
-
Where:
Build file ‘D:\Source\Studio\iweather\platforms\android\CordovaLib\build.gradle’ line: 40 -
What went wrong:
A problem occurred evaluating project ‘:CordovaLib’.
Plugin with id ‘com.android.library’ not found.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 2s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
-
Where:
Build file ‘D:\Source\Studio\iweather\platforms\android\CordovaLib\build.gradle’ line: 40 -
What went wrong:
A problem occurred evaluating project ‘:CordovaLib’.
Plugin with id ‘com.android.library’ not found.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 2s
Picked up _JAVA_OPTIONS: -Xmx512M
[ERROR] An error occurred while running subprocess cordova.
cordova build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I tried to remove and add android platform.
Last week the generation of the APK was correct.
Marco