【发布时间】:2017-09-28 00:34:22
【问题描述】:
我正在使用新的 Ionic Pro。我已将我以前工作的 ionic 应用程序迁移到新的 Pro 服务。我现在能够成功地将我的代码推送到我的 ionic pro git repo 并且我可以在仪表板上看到构建日志。构建成功完成。完成后,我导航到所述构建的“包”选项卡。我将我的包配置为编译 platform=Android version=Release Security Profile=Android Release 安全配置文件。
此时的输出日志在安装过程中移动并获得以下控制台输出。
BUILD SUCCESSFUL
然后构建过程似乎启动了一个 Gradle 守护进程并最终以这个输出结束
The Task.leftShift(Closure) method has been deprecated and is scheduled to
be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at
build_dczd6dp0q9phbzjp0lgrh3ndj.run(/usr/src/app/platforms/android/build.gradle:142) 文件 /home/gitlab-runner/.android/repositories.cfg 无法加载。 在 /opt/android- 中检查包 Android SDK Platform 26 的许可证 SDK/许可证 已接受包 Android SDK Platform 26 的许可。 准备“安装 Android SDK 平台 26”。 警告:无法读取或创建安装属性文件。
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Failed to install the following SDK components:
[Android SDK Platform 26]
The SDK directory (/opt/android-sdk) is not writeable,
please update the directory permissions.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.
BUILD FAILED
Total time: 33.48 secs
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code
1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Failed to install the following SDK components:
[Android SDK Platform 26]
The SDK directory (/opt/android-sdk) is not writeable,
please update the directory permissions.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.
Failed to upload apk to storage please retry your build.
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1
我不清楚这个错误是什么意思,或者我如何使用 ionic pro 解决它。该构建在本地为我工作。
以下是我的离子信息
@ionic/cli-utils : 1.10.2
ionic (Ionic CLI) : 3.10.3
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3 ios
Ionic Framework : ionic-angular 2.3.0
System:
Node : v7.5.0
npm : 4.1.2
OS : Windows 10
【问题讨论】:
标签: ionic-framework ionic2 ionic3