zoukankan      html  css  js  c++  java
  • gradle command not found

    Run:

    ./gradlew -q dependencies <module-name>:dependencies --configuration compile

    Example:

    ./gradlew -q dependencies app:dependencies --configuration compile

    find / -name 'gradle*'

    ....

    /Applications/Android Studio.app/Contents/gradle/gradle-2.10/bin/gradle

    ....

    打开terminal,执行命令

    /Applications/Android Studio.app/Contents/gradle/gradle-2.10/bin/gradle -q dependencies

    返回结果:

    ------------------------------------------------------------

    Root project

    ------------------------------------------------------------

     

    _debugAndroidTestApk - ## Internal use, do not manually configure ##

    No dependencies

     

    _debugAndroidTestCompile - ## Internal use, do not manually configure ##

    No dependencies

     

    _debugApk - ## Internal use, do not manually configure ##

    +--- project :app

    +--- com.umeng.analytics:analytics:latest.integration -> 5.6.7

    +--- com.android.support:support-v4:21.0.3

    |    --- com.android.support:support-annotations:21.0.3

    +--- com.android.support:appcompat-v7:23.1.1

    --- project :CordovaLib

     

    _debugCompile - ## Internal use, do not manually configure ##

    +--- project :app

    +--- com.umeng.analytics:analytics:latest.integration -> 5.6.7

    +--- com.android.support:support-v4:21.0.3

    |    --- com.android.support:support-annotations:21.0.3

    +--- com.android.support:appcompat-v7:23.1.1

    --- project :CordovaLib

     

    _debugUnitTestApk - ## Internal use, do not manually configure ##

    No dependencies

     

    _debugUnitTestCompile - ## Internal use, do not manually configure ##

    No dependencies

     

    _releaseApk - ## Internal use, do not manually configure ##

    +--- project :app

    +--- com.umeng.analytics:analytics:latest.integration -> 5.6.7

    +--- com.android.support:support-v4:21.0.3

    |    --- com.android.support:support-annotations:21.0.3

    +--- com.android.support:appcompat-v7:23.1.1

    --- project :CordovaLib

     

    _releaseCompile - ## Internal use, do not manually configure ##

    +--- project :app

    +--- com.umeng.analytics:analytics:latest.integration -> 5.6.7

    +--- com.android.support:support-v4:21.0.3

    |    --- com.android.support:support-annotations:21.0.3

    +--- com.android.support:appcompat-v7:23.1.1

    --- project :CordovaLib

     

    _releaseUnitTestApk - ## Internal use, do not manually configure ##

    No dependencies

     

    _releaseUnitTestCompile - ## Internal use, do not manually configure ##

    No dependencies

     

    androidJacocoAgent - The Jacoco agent to use to get coverage data.

    --- org.jacoco:org.jacoco.agent:0.7.4.201502262128

     

    androidJacocoAnt - The Jacoco ant tasks to use to get execute Gradle tasks.

    --- org.jacoco:org.jacoco.ant:0.7.4.201502262128

         +--- org.jacoco:org.jacoco.core:0.7.4.201502262128

         |    --- org.ow2.asm:asm-debug-all:5.0.1

         +--- org.jacoco:org.jacoco.report:0.7.4.201502262128

         |    +--- org.jacoco:org.jacoco.core:0.7.4.201502262128 (*)

         |    --- org.ow2.asm:asm-debug-all:5.0.1

         --- org.jacoco:org.jacoco.agent:0.7.4.201502262128

     

    androidTestApk - Classpath packaged with the compiled 'androidTest' classes.

    No dependencies

     

    androidTestCompile - Classpath for compiling the androidTest sources.

    No dependencies

     

    androidTestProvided - Classpath for only compiling the androidTest sources.

    No dependencies

     

    androidTestWearApp - Link to a wear app to embed for object 'androidTest'.

    No dependencies

     

    apk - Classpath packaged with the compiled 'main' classes.

    No dependencies

     

    archives - Configuration for archive artifacts.

    No dependencies

     

    compile - Classpath for compiling the main sources.

    +--- project :app

    +--- com.umeng.analytics:analytics:latest.integration -> 5.6.7

    +--- com.android.support:support-v4:21.0.3

    |    --- com.android.support:support-annotations:21.0.3

    --- com.android.support:appcompat-v7:23.1.1

     

    debugApk - Classpath packaged with the compiled 'debug' classes.

    No dependencies

     

    debugCompile - Classpath for compiling the debug sources.

    --- project :CordovaLib

     

    debugProvided - Classpath for only compiling the debug sources.

    No dependencies

     

    debugWearApp - Link to a wear app to embed for object 'debug'.

    No dependencies

     

    default - Configuration for default artifacts.

    No dependencies

     

    default-mapping - Configuration for default mapping artifacts.

    No dependencies

     

    default-metadata - Metadata for the produced APKs.

    No dependencies

     

    provided - Classpath for only compiling the main sources.

    No dependencies

     

    releaseApk - Classpath packaged with the compiled 'release' classes.

    No dependencies

     

    releaseCompile - Classpath for compiling the release sources.

    --- project :CordovaLib

     

    releaseProvided - Classpath for only compiling the release sources.

    No dependencies

     

    releaseWearApp - Link to a wear app to embed for object 'release'.

    No dependencies

     

    testApk - Classpath packaged with the compiled 'test' classes.

    No dependencies

     

    testCompile - Classpath for compiling the test sources.

    No dependencies

     

    testDebugApk - Classpath packaged with the compiled 'testDebug' classes.

    No dependencies

     

    testDebugCompile - Classpath for compiling the testDebug sources.

    No dependencies

     

    testDebugProvided - Classpath for only compiling the testDebug sources.

    No dependencies

     

    testDebugWearApp - Link to a wear app to embed for object 'testDebug'.

    No dependencies

     

    testProvided - Classpath for only compiling the test sources.

    No dependencies

     

    testReleaseApk - Classpath packaged with the compiled 'testRelease' classes.

    No dependencies

     

    testReleaseCompile - Classpath for compiling the testRelease sources.

    No dependencies

     

    testReleaseProvided - Classpath for only compiling the testRelease sources.

    No dependencies

     

    testReleaseWearApp - Link to a wear app to embed for object 'testRelease'.

    No dependencies

     

    testWearApp - Link to a wear app to embed for object 'test'.

    No dependencies

     

    wearApp - Link to a wear app to embed for object 'main'.

    No dependencies

  • 相关阅读:
    APACHE 服务器开启URL REWRITE模块的方法
    tp路由+伪静态+去掉index.php
    PHP实现伪静态方法汇总
    在SAE分布式服务上开发需要解决的问题
    [置顶] 刘汝佳《训练指南》动态规划::Beginner (25题)解题报告汇总
    android 桌面小工具(Widget)开发教程
    VC++深入详解-第四章学习心得
    LED音乐频谱之输入数据处理
    CSharp设计模式读书笔记(15):命令模式(学习难度:★★★☆☆,使用频率:★★★★☆)
    CSharp设计模式读书笔记(14):职责链模式(学习难度:★★★☆☆,使用频率:★★☆☆☆)
  • 原文地址:https://www.cnblogs.com/yuanxiaoping_21cn_com/p/5481261.html
Copyright © 2011-2022 走看看