cordova打包vue项目

安装步骤执行到cordova build android时报错;
FAILURE: Build failed with an exception.

  • Where:

Build file 'D:workcordovacordovaAppplatformsandroidCordovaLibbuild.gradle' line: 40

  • What went wrong:

A problem occurred evaluating project ':CordovaLib'.

Failed to apply plugin [id 'com.android.library']
Illegal char <:> at index 89: C:UsersthinkDownloadsandroid-sdk_r24.4.1-windowsandroid-sdk-windowsplatform-tools;C:UsersthinkDownloadsandroid-sdk_r24.4.1-windowsandroid-sdk-windowstoolsanalytics.settings
  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED in 3s
(node:4584) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:

Build file 'D:workcordovacordovaAppplatformsandroidCordovaLibbuild.gradle' line: 40

  • What went wrong:

A problem occurred evaluating project ':CordovaLib'.

Failed to apply plugin [id 'com.android.library']
Illegal char <:> at index 89: C:UsersthinkDownloadsandroid-sdk_r24.4.1-windowsandroid-sdk-windowsplatform-tools;C:UsersthinkDownloadsandroid-sdk_r24.4.1-windowsandroid-sdk-windowstoolsanalytics.settings
  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED in 3s
(node:4584) [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.

阅读 2.8k
1 个回答
新手上路,请多包涵

你好,这问题解决了吗?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题