gradle command not found

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/109028.html原文链接:https://javaforall.net

(0)
上一篇 2021年9月14日 下午8:00
下一篇 2021年9月14日 下午9:00


相关推荐

  • java如何向数组里添加元素

    java如何向数组里添加元素java篇哇,菜鸟第一次写这个东西,当加深印象,大佬们请略过,欢迎有错指出。向数组里添加一个元素怎么添加,这儿总结有三种方法:1、一般数组是不能添加元素的,因为他们在初始化时就已定好长度了,不能改变长度。但有个可以改变大小的数组为ArrayList,即可以定义一个ArrayList数组,然后用add(element)方法往里添加元素即可,还可add(index,element)往指…

    2022年6月9日
    116
  • linux 大总结[通俗易懂]

    linux 大总结[通俗易懂]1.Linux介绍Linux内核最初只是由芬兰人林纳斯·托瓦兹(LinusTorvalds)在赫尔辛基大学上学时出于个人爱好而编写的。Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。Linux能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。目前市面上较

    2022年6月7日
    47
  • JAVA静态内部类_java静态内部类实例化

    JAVA静态内部类_java静态内部类实例化写在前面  不知不觉,我正式入职到部门实习也有一周多的时间了,这段时间确实学到了不少东西。从大公司的办公、办事的流程准则,到程序员的日常研发工作和其中的注意事项,导师和同事们都很乐于帮助我融入这个新环境。  因为实习生不用加班,业余时间也比较多。便想着利用空闲时间来深入学习、总结一些平时工作中遇到的知识点和代码细节,把之前因为准备期末都快要荒废掉的写博客总结的习惯重新拾回来。fighting~!

    2022年10月10日
    4
  • 水果篮一般装几种水果_one step closer水果篮子

    水果篮一般装几种水果_one step closer水果篮子904.水果成篮题目描述题目链接:904水果成蓝你正在探访一家农场,农场从左到右种植了一排果树。这些树用一个整数数组fruits表示,其中fruits[i]是第i棵树上的水果种类。你想要尽可能多地收集水果。然而,农场的主人设定了一些严格的规矩,你必须按照要求采摘水果:你只有两个篮子,并且每个篮子只能装单一类型的水果。每个篮子能够装的水果总量没有限制。你可以选择任意一棵树开始采摘,你必须从每棵树(包括开始采摘的树)上恰好摘一个水果。采摘的水果应当符合篮子中的水果类型。

    2025年11月28日
    10
  • Cursor集成终端怎么用? Cursor集成终端详细图文使用指南

    Cursor集成终端怎么用? Cursor集成终端详细图文使用指南

    2026年3月16日
    5
  • 科大讯飞:星火X1大模型以更少参数,实现对标OpenAIo3的效果

    科大讯飞:星火X1大模型以更少参数,实现对标OpenAIo3的效果

    2026年3月14日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号