我已经到处搜索了,没有关于这个错误的信息。
我有安装了Android Studio,并尝试了几个SDK,但仍然出现相同的错误。同时环境变量也已经正确地设置好了。
顺便说一下,这是build.gradle的第40行:
apply plugin: 'com.android.library'
错误:构建过程异常。
- 位于文件 '/home/user/Documents/app/platforms/android/CordovaLib/build.gradle' 的第40行。
A problem occurred evaluating project ':CordovaLib'.
org.gradle.api.Project.getPluginManager()Lorg/gradle/api/plugins/PluginManager;
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
at ChildProcess.whenDone (/home/user/app/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:947:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5)
(node:2259) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2259) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.