- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试构建签名的 apk 时,我开始遇到以下问题:
Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.google.firebase:firebase-plugins:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
最佳答案
更新类路径 com.android.tools.build:gradle
到项目 gradle 中的最新版本。
classpath 'com.android.tools.build:gradle:3.5.1'
关于android - 找不到方法 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58536705/
我正在从 GitHub 克隆一个 android 类(class)项目,并面临一系列错误,我已经设法解决了其中一些,直到我卡在最后一个,场景如下: 1- 错误:找不到 com.android.supp
我的项目的 gradle 文件具有以下内容: compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCo
升级到 Gradle 4.x 后,我 get the warning The CompileOptions.bootClasspath property has been deprecated and
我想在我的 gradle 构建中设置 -parameters 命令,这样我就可以使用反射来访问参数的名称。看来我应该使用以下闭包来执行此操作。 compileJava { compileOpt
我什么都没改变。 请有人帮我解决这个问题: ERROR: Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setB
apply plugin: 'com.android.application' android { compileSdkVersion 19 buildToolsVersion "22
我正在尝试将我的应用与使用此警告编译的 Firebase 消息服务链接: 信息:API“variant.getJavaCompile()”已过时,已替换为“variant.getJavaCompile
我想在我的应用程序中使用一些 java 8 功能(即使用 json 库) 但是,当我添加 compileOptions { sourceCompatibility JavaVe
我对 build.gradle 进行了更改以升级我的项目,我正在使用 MacOSX 上的 Android Studio 2.1 预览版,这是我的 Gradle: build.gradle. apply
将 android studio 更新到 3.4 后,我无法构建项目。谁能帮帮我。 Unable to find method 'org.gradle.api.tasks.compile.Compil
当我尝试构建签名的 apk 时,我开始遇到以下问题: Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBoo
我是一名优秀的程序员,十分优秀!