草庐IT

Gradle-only

全部标签

android - 在 com.android.build.gradle.internal.api.ApplicationVariantImpl 上找不到属性 'outputFile'

更新到AS1.0RC1和插件0.14.4后,我的build.gradle的重命名部分出现问题:applicationVariants.all{variant->deffile=variant.outputFilevariant.outputFile=newFile(file.parent,file.name.replace(".apk","-"+defaultConfig.versionName+".apk"))}现在抛出:Error:(78,0)Couldnotfindproperty'outputFile'oncom.android.build.gradle.internal.ap

android - 在 com.android.build.gradle.internal.api.ApplicationVariantImpl 上找不到属性 'outputFile'

更新到AS1.0RC1和插件0.14.4后,我的build.gradle的重命名部分出现问题:applicationVariants.all{variant->deffile=variant.outputFilevariant.outputFile=newFile(file.parent,file.name.replace(".apk","-"+defaultConfig.versionName+".apk"))}现在抛出:Error:(78,0)Couldnotfindproperty'outputFile'oncom.android.build.gradle.internal.ap

android - 如何使用 gradle 将 org.apache.commons.lang3 添加到 Android Studio

由于thisquestion我想使用类StringEscapeUntils包装内org.apache.commons.lang3.但是当我尝试导入Apachelib添加行compile'org.apache.commons:commons-collections4:4.0'至build.grade文件则无法导入上面的类。有没有人可以帮助我如何通过gradle将以上一个导入到我的项目中(而不是通过下载.jar并将它们放入项目文件夹中)。 最佳答案 2018年7月12日编辑:我认为您使用的StringUtils的依赖性不正确。请将以下依

android - 如何使用 gradle 将 org.apache.commons.lang3 添加到 Android Studio

由于thisquestion我想使用类StringEscapeUntils包装内org.apache.commons.lang3.但是当我尝试导入Apachelib添加行compile'org.apache.commons:commons-collections4:4.0'至build.grade文件则无法导入上面的类。有没有人可以帮助我如何通过gradle将以上一个导入到我的项目中(而不是通过下载.jar并将它们放入项目文件夹中)。 最佳答案 2018年7月12日编辑:我认为您使用的StringUtils的依赖性不正确。请将以下依

Android Gradle 找不到符号类 Gson

所以我将gson-2.2.4.jar添加到libs目录(我使用的是androidstudio)。我的项目找不到Gson的东西,所以我将它作为库依赖项添加到“项目结构”中的模块中。当我尝试运行该项目时,构建失败并出现以下错误:Error:(12,23)Gradle:packagecom.google.gsondoesnotexistError:(37,3)Gradle:cannotfindsymbolclassGsonError:(37,19)Gradle:cannotfindsymbolclassGson为什么我不能让它工作?我在别处读到,如果将Gradle放在lib目录中,Gradl

Android Gradle 找不到符号类 Gson

所以我将gson-2.2.4.jar添加到libs目录(我使用的是androidstudio)。我的项目找不到Gson的东西,所以我将它作为库依赖项添加到“项目结构”中的模块中。当我尝试运行该项目时,构建失败并出现以下错误:Error:(12,23)Gradle:packagecom.google.gsondoesnotexistError:(37,3)Gradle:cannotfindsymbolclassGsonError:(37,19)Gradle:cannotfindsymbolclassGson为什么我不能让它工作?我在别处读到,如果将Gradle放在lib目录中,Gradl

android - 构建 android -gradle 项目时出现 crashlytics 开发人员工具错误

我正在尝试使用eclipse构建一个androidgradle项目,但是在使用命令行构建项目时出现此错误:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:crashlyticsCleanupResourcesRelease'.>CrashlyticsDeveloperToolserror.*Try:Runwith--stacktraceoptiontogetthestacktrace.Runwith--infoor--debugoptiontogetmorelogoutput.B

android - 构建 android -gradle 项目时出现 crashlytics 开发人员工具错误

我正在尝试使用eclipse构建一个androidgradle项目,但是在使用命令行构建项目时出现此错误:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:crashlyticsCleanupResourcesRelease'.>CrashlyticsDeveloperToolserror.*Try:Runwith--stacktraceoptiontogetthestacktrace.Runwith--infoor--debugoptiontogetmorelogoutput.B

android - 如何将 Gradle 支持添加到现有项目?

在尝试让我的项目在Gradle上运行的过程中,我已经为我的新项目安装并设置了Gradle。我的问题是我不断收到错误“ModuleX不受Gradle支持”。我已经运行了gradlesetupBuild并且文件看起来是正确的,但是在AndroidStudio中运行时它不会停止错误。这是我得到的截图:所以我想知道如果项目已经存在,如何在AndroidStudio中将Gradle支持添加到项目中。 最佳答案 我还没有在AndroidStudio中找到一个好的解决方案,但这在几个项目中对我有用:在AndroidStudio中关闭项目(因此在后

android - 如何将 Gradle 支持添加到现有项目?

在尝试让我的项目在Gradle上运行的过程中,我已经为我的新项目安装并设置了Gradle。我的问题是我不断收到错误“ModuleX不受Gradle支持”。我已经运行了gradlesetupBuild并且文件看起来是正确的,但是在AndroidStudio中运行时它不会停止错误。这是我得到的截图:所以我想知道如果项目已经存在,如何在AndroidStudio中将Gradle支持添加到项目中。 最佳答案 我还没有在AndroidStudio中找到一个好的解决方案,但这在几个项目中对我有用:在AndroidStudio中关闭项目(因此在后