草庐IT

Gradle-only

全部标签

android - 将 kSOAP 依赖项添加到 Gradle 项目

我正在尝试使用Gradle让kSOAP在我的Android项目中工作。这是我项目的build.gradle文件:buildscript{repositories{mavenCentral()}dependencies{classpath'com.android.tools.build:gradle:0.5.+'}}applyplugin:'android'repositories{mavenCentral()maven{url'http://ksoap2-android.googlecode.com/svn/m2-repo'}}android{compileSdkVersion18bu

android - 将 kSOAP 依赖项添加到 Gradle 项目

我正在尝试使用Gradle让kSOAP在我的Android项目中工作。这是我项目的build.gradle文件:buildscript{repositories{mavenCentral()}dependencies{classpath'com.android.tools.build:gradle:0.5.+'}}applyplugin:'android'repositories{mavenCentral()maven{url'http://ksoap2-android.googlecode.com/svn/m2-repo'}}android{compileSdkVersion18bu

android - 在 Intellij IDEA 中不断出现 Gradle 错误 "Could not reserve enough space for object heap"

所以我的内存分配有问题。有时它有效,有时则无效。我已阅读thisthread并多次尝试那里的建议。有时-Xms512m-Xmx768m有效,有时-Xms256m-Xmx512m。我厌倦了不得不在IntelliJ中的Build,Execution,Deployment>BuildTools>Gradle>GradleVM选项设置下调整此设置。没有设置可以一劳永逸地解决这个问题吗?我的Windows7计算机上有16GB的RAM,我正在运行IntelliJIDEAEAP14build138.2210.3,64位版本。AndroidGradle构建插件v0.12。我怀疑gradle没有在64位

android - 在 Intellij IDEA 中不断出现 Gradle 错误 "Could not reserve enough space for object heap"

所以我的内存分配有问题。有时它有效,有时则无效。我已阅读thisthread并多次尝试那里的建议。有时-Xms512m-Xmx768m有效,有时-Xms256m-Xmx512m。我厌倦了不得不在IntelliJ中的Build,Execution,Deployment>BuildTools>Gradle>GradleVM选项设置下调整此设置。没有设置可以一劳永逸地解决这个问题吗?我的Windows7计算机上有16GB的RAM,我正在运行IntelliJIDEAEAP14build138.2210.3,64位版本。AndroidGradle构建插件v0.12。我怀疑gradle没有在64位

android - 如何在 Android Gradle 配置中获取当前的 buildType

我想根据当前的buildType在AndroidGradle项目中动态添加依赖项。我知道我可以specifythebuildTypeinthedependency:compileproject(path:':lib1',configuration:'debug')但是如何使用当前的buildType来指定我要导入的库的哪个变体,以便调试或发布版本自动导入库的调试或发布变体?我想要的是这样的(其中currentBuildType是一个包含当前使用的buildType名称的变量):compileproject(path:':lib1',configuration:currentBuildT

android - 如何在 Android Gradle 配置中获取当前的 buildType

我想根据当前的buildType在AndroidGradle项目中动态添加依赖项。我知道我可以specifythebuildTypeinthedependency:compileproject(path:':lib1',configuration:'debug')但是如何使用当前的buildType来指定我要导入的库的哪个变体,以便调试或发布版本自动导入库的调试或发布变体?我想要的是这样的(其中currentBuildType是一个包含当前使用的buildType名称的变量):compileproject(path:':lib1',configuration:currentBuildT

android - 数据绑定(bind)错误 : Only one layout element and one data element are allowed.

在使用数据绑定(bind)并在其中包含标签时出现以下错误:Error:Executionfailedfortask':app:dataBindingProcessLayoutsBetaDebug'.>databindingerrormsg:Onlyonelayoutelementandonedataelementareallowed.[pathtofile]has3file:[pathtofile]****\databindingerror****这是我的布局文件:[...][...]在每个包含的布局中,我都有这样的内容:[...]来自此回复:AndroidDataBindingusi

android - 数据绑定(bind)错误 : Only one layout element and one data element are allowed.

在使用数据绑定(bind)并在其中包含标签时出现以下错误:Error:Executionfailedfortask':app:dataBindingProcessLayoutsBetaDebug'.>databindingerrormsg:Onlyonelayoutelementandonedataelementareallowed.[pathtofile]has3file:[pathtofile]****\databindingerror****这是我的布局文件:[...][...]在每个包含的布局中,我都有这样的内容:[...]来自此回复:AndroidDataBindingusi

Android Gradle DexException : Multiple dex files define Lorg/hamcrest/Description

com.android.dex.DexException:多个dex文件定义Lorg/hamcrest/Description在尝试通过AndroidStudio或通过我的应用程序上的Gradle命令行进行调试构建/测试时发生。发布版本(没有测试)工作正常,但是一旦包含测试(hamcrest是一个测试库),构建就会失败并出现上述错误。我检查了我的模块依赖项,没有gradle-qdependencies证实的重复要求。项目设置.gradleinclude':[librarymodule]'include':[mainmodule]'项目build.gradlebuildscript{re

Android Gradle DexException : Multiple dex files define Lorg/hamcrest/Description

com.android.dex.DexException:多个dex文件定义Lorg/hamcrest/Description在尝试通过AndroidStudio或通过我的应用程序上的Gradle命令行进行调试构建/测试时发生。发布版本(没有测试)工作正常,但是一旦包含测试(hamcrest是一个测试库),构建就会失败并出现上述错误。我检查了我的模块依赖项,没有gradle-qdependencies证实的重复要求。项目设置.gradleinclude':[librarymodule]'include':[mainmodule]'项目build.gradlebuildscript{re