草庐IT

GRADLE_HOME

全部标签

android - Gradle assembleDebug 和 preDexDebug 因 CircleCI 而失败

我尝试使用CircleCI来assembleDebug,但它肯定无法构建(preDex)。为什么我不能那样做?使用ProductFlavor(名称为production)AndroidGradlever.1.1.0-rc1问题./gradlewassembleProductionDebugdiedunexpectedlyBuilding92%3%>:app:preDexProductionDebugaction./gradlewassembleProductionDebugfailed圆.ymlgeneral:artifacts:-"app/build/outputs/apk/app-

android - 从 Android Studio 运行应用程序时,在 Gradle 任务 processManifest.doLast 中编辑 AndroidManifest.xml 无效

我使用以下Gradle脚本在编译时对AndroidManifest.xml进行一些修改。在这个例子中我想注入(inject)一个元素。代码基于thisanswer.android{//...applicationVariants.all{variant->variant.outputs.each{output->output.processManifest.doLast{defmanifestOutFile=output.processManifest.manifestOutputFiledefnewFileContents=manifestOutFile.getText('UTF-8

android - gradle-2.10-all.zip.lck 报错(系统找不到指定路径)

我最近将我的AndroidStudio更新到2.1.3的最新版本,并且还做了一些弹出的其他更新,只是为了在我的androidstudio上的所有现有项目中获得下面的错误。Error:C:\ProgramFiles\Android\AndroidStudio1\gradle\gradle-2.2.1\wrapper\dists\gradle-2.10-all\a4w5fzrkeut1ox71xslb49gst\gradle-2.10-all.zip.lck(Thesystemcannotfindthepathspecified)伙计们,我需要你们的帮助。谢谢。

android - 如何为gradle设置代理服务器?

我需要设置代理服务器才能使用我公司网络中的gradle下载项目依赖项。我尝试为shell设置代理,但它没有用,所以我认为这是因为命令,gradle使用下载这些依赖,不使用http_proxy环境变量。gradle在下载项目依赖时使用了哪些命令(如wget、curl)?我如何检查这些命令?我尝试了--info和--debug选项,但它只对每个文件说类似的东西;Downloadhttps://jcenter.bintray.com/com/android/tools/lint/lint/25.1.0/lint-25.1.0.pom 最佳答案

android - Gradle 找不到 android 插件的类路径

我收到此错误消息,提示无法找到与Android插件相关的类路径。使用gradle1.2。这里是错误:Couldnotfindmethodclasspath()forarguments[org.gradle.api.plugins:gradle-android-plugin:1.2.1]这是我的build.gradle文件//setupexternaldependencypluginswewillusetobuildaandroidapplicationbuildscript{repositories{mavenCentral()maven{url"https://oss.sonatyp

android - Android Studio 和 Gradle 未知类 'Object' 的 Proguard 说明

我在AndroidStudio中创建了一个新项目,并正在使用Gradle构建它。我已经为发布构建添加了Proguard集成,每次运行assembleRelease步骤时,我都会看到这个注释:Note:theconfigurationreferstotheunknownclass'Object'Maybeyoumeantthefullyqualifiedname'java.lang.Object'?我的Proguard配置文件或AndroidSDK文件夹中的配置文件均未包含非限定名称Object。我的build.gradle包括:buildTypes{release{runProguar

Android 项目和 Gradle : assemble a single module

我有一个包含多个子项目(又名:模块)的AndroidStudio项目。我想从命令行构建其中一些子项目。我在Android开发指南上读到,您可以通过简单地运行来构建您的项目gradlew.batassembleDebug从命令行,但是这总是构建整个项目(所有模块)我只想组装一个模块,我该怎么做? 最佳答案 另一种方法是:gradlew.bat:myModule:assembleDebughttps://stackoverflow.com/a/16987319/1807627 关于Andro

android - gradle 以非零退出值 3 结束

我的项目包含3个库:calendar_cmcc、Wheel_library和yellowPage_lib。我可以完美地构建项目,但是当我运行它时,gradle会抛出一个错误。错误如下:Error:Executionfailedfortask':app:dexDebug'.com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process'command'/home/jim/tools/jdk1.8.0_45/bin/java''finishedwithnon-

Android - 什么是 gradle 任务 connectedCheck 用于

当我运行以下命令时,我得到了connectedCheck的描述,但我仍然不确定它的用途。谁能给我一个真实世界的例子?./gradlewtasksprints...Verificationtasks------------------check-Runsallchecks.connectedCheck-Runsalldevicechecksoncurrentlyconnecteddevices.connectedInstrumentTest-InstallsandrunsthetestsforBuild'Debug'onconnecteddevices.deviceCheck-Runsa

Android Gradle 构建错误

我在build.gradle文件中添加依赖项。我的代码是:dependencies{compilefileTree(dir:'libs',include:['*.jar'])compile'com.android.support:appcompat-v7:21.0.3'compile'com.google.android.gms:play-services:6.1.11'compile'org.apache.httpcomponents:httpmime:4.4.1'compile'org.apache.httpcomponents:httpcore:4.4.1'compile'org