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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • bat中使用mshta调用vbs语句获取精准计算的日期

    bat中使用mshta调用vbs语句获取精准计算的日期1.在bat中,获取指定的日期格式是比较麻烦的。因为cmd环境中,日期格式随着系统的时间格式设置而变化,通常系统默认的时间格式是“\’”符号作为连接符。日期通常用在文件名上,比如日志的文件名。那么日期的格式就只能用“-”符号代替,更改系统日期格式会显得容易被外界因素改变,导致不稳定。当然也可以用bat中的set来进行替换,但这样费代码量。2.对于计算日期来说,bat是难以准确做到的,也需要堆积代码量才能完成。特别是到了每个月的一号时,无法确定昨天是否是31号还是30号还是28号。那么bat就只能陷入迷茫

    2025年6月7日
    3
  • checkbox选中和不选中 jqu_jquery checkbox 选中不选中

    checkbox选中和不选中 jqu_jquery checkbox 选中不选中展开全部$(function(){//动态绑定默认状态//$(“#ck”).attr(“checked”,true)//选中//$(“#ck”).attr(“checked”,false)//未选中//点击判断选中还是未选中$(“#ck”).click(function(){if($(this).is(“:checked”)){alert(“选中”);}else{alert…

    2022年6月30日
    20
  • cloudsim4.0中CloudSimExample2分析

    cloudsim4.0中CloudSimExample2分析CloudSimExample2展示如何创建一个只含一个主机的数据中心,并在其上运行两个云任务。(两个云任务运行在具有相同计算能力的虚拟机上,即两个云任务的执行需要相同的时间)首先附上CloudSimExample1全部代码:/**Title:CloudSimToolkit*Description:CloudSim(CloudSimulation)…

    2022年10月13日
    3
  • java jvm 参数 -Xms -Xmx -Xmn -Xss 调优

    堆大小设置JVM中最大堆大小有三方面限制: 1.相关操作系统的数据模型(32-bt还是64-bit)限制;2.系统的可用虚拟内存限制;3.系统的可用物理内存限制.在32位系统下,一般限制在1.5G~2G;64为操作系统对内存无特定限制.  机器配置:128G内存  32核CPU典型设置: java-Xmx72g -Xms72-Xmn4g-Xss256m  -Xmx…

    2022年4月6日
    80
  • linux安装yarn

    linux安装yarn这里介绍使用yum的方式:先要安装node.js,用node-v可以查看是否安装了node。1、添加yarn仓库wgethttps://dl.yarnpkg.com/rpm/yarn.repo-O/etc/yum.repos.d/yarn.repo2、安装yarnyum-yinstallyarn安装完成后,yarn-v可以查看版本。…

    2022年5月9日
    39
  • Android angle_android 界面悬停

    Android angle_android 界面悬停最近在研究android游戏引擎Angle,准备纪录下学习心得。我的目的是用它实现UI,给我开发的安卓应用添加一些迷人的效果。初步研究了一下,只要解决下列问题就可以了:1•汉字显示 2•动态更新纹理,比如从网络下载图片,更新显示 3•简单的动画效果 4•与播放器整合 5•实现一些基本控件,如List(文本、图片),Button,Tab,TextView等 6•与非openg

    2026年1月23日
    4

发表回复

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

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