首页 文章

Jenkins Ionic build无法找到Gradle

提问于
浏览
1

这是几天尝试用Jenkins构建Ionic应用程序,尝试了不同的修复方法,并且每次都失败了,所以我会感激你的帮助 .

版本堆栈:NODE:v6.10.3 Ionic:v3.3.0 Cordova:v7.0.1 Gradle:3.5

Environmental variables
ANDROID_HOME
JAVA_HOME
PATH = c:\Gradle\bin 'I read about this and the page suggested to use c:\Gradle\bin\.gradle\3.5 but is not been recognized'

我能够在本地构建但是当尝试使用Powershell上的相同命令从Jenkins构建时,我收到以下错误

ANDROID_HOME = C:\ Users \ Integration \ AppData \ Local \ Android \ sdk JAVA_HOME = C:\ Program Files \ Java \ jdk1.8.0_131错误:无法在Android Studio或系统中找到已安装的Gradle版本安装gradle包装器 . 请在您的路径中包含gradle,或安装Android Studio

我已经尝试了以下修复:

  • 重新安装Android SDK

  • 全球重新安装Ionic和cordova

  • 使用Jenkins Gradle

1 回答

  • 0

    和这里一样 . 我认为在离子框架中发生了一些变化,我的离子信息是:全局包:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 7.0.1
    Ionic CLI        : 3.4.0
    

    本地包裹:

    @ionic/app-scripts              : 1.3.8
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : android 6.2.3
    Ionic Framework                 : ionic-angular 3.4.2
    

    系统:

    Node       : v6.11.0
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 5.0.4
    

    但我的其他应用程序

    Ionic Framework                 : ionic-angular 3.1.0
    

    工作良好 . 这是在Ionic 3.4下开始的第一个应用程序

相关问题