- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
Bug:我想将 Realm 数据库从 4.2.0 版本更新到 4.3.3,但是在 gradle sync 之后,它会失败
目标
将领域从 4.2.0 更新到 4.3.3
预期结果
Gradle 同步会成功
实际结果
Gradle 同步失败,堆栈跟踪:
Error:Execution failed for task ':QuizApp:processDebugResources'.
Could not get unknown property 'packageForR' for task
':QuizApp:processDebugResources' of type
com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.
顶级gradle文件
buildscript {
repositories {
jcenter { url 'http://jcenter.bintray.com/' }
maven { url 'https://maven.fabric.io/public' }
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
mavenCentral()
google()
}
dependencies {
// classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.2.0-alpha01'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
classpath 'io.fabric.tools:gradle:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "com.github.nullstress:DependencyAnalysisPlugin:1.0.3"
classpath 'com.google.gms:google-services:3.1.0'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
classpath "io.realm:realm-gradle-plugin:4.3.2"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.2'
}
}
我尝试清理 gradle 缓存并停止 gradle 守护进程。然后重试构建。但问题依旧
最佳答案
如果您正在使用 ButterKnife,只需删除 ButterKnife gradle 插件,并使用 annotationProcessor + implementation 版本反而。请参阅以下步骤:
apply plugin: 'com.jakewharton.butterknife'
只需在 gradle 中使用/添加以下依赖项即可:
dependencies {
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}
关于android - 无法为类型为 'packageForR' 的任务获取未知属性 '::processDebugResources',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48713415/
今天在构建/制作项目时遇到了这个令人沮丧的错误,这似乎是因为使用构建工具 19.0.1、19.0.2 和 19.0.3 安装 Android SDK 22.6(也尝试过 22.6.1)。 aapt 错
我最近在尝试导出我的应用程序时遇到了这个FAILURE。 我正在使用最新的工具和更新的一切。我发现了大约 10 个帖子的答案,指向 sdk 的更改版本。 我正在尝试通过 phonegap build
使用 ionic 构建 android 应用程序: [root@localhost ionic-app-base-master]# ionic build android 控制台日志显示这些消息: R
所以我尝试在 Android Studio 中构建我的项目,但每次加载或执行项目时,我都会收到以下错误。我不知道如何解决这个问题... Execution failed for task ':oefe
Gradle说他由于一个未知的错误而无法正确构建,但是我没有特别更改任何内容,那为什么会发生呢? 我已经看到答案,说您必须将gradle.build文件版本更改为this one,以安装32位depe
我在 Windows 上。我至少在 Android Studio 上为 Marshmallow 创建了一个新项目。 到目前为止,我所做的唯一一件事就是生成主要 Activity ,这是一个带有 Vie
当我想在 ionic(空白的测试项目)上构建应用程序时,命令“ionic cordova build android”返回此错误: 构建失败 总时间:1 分 13.795 秒 Error: /home
我正在使用 bitbucket,因此我可以与其他开发人员合作,但似乎我们无法让它完美地工作。从他那里提取更改后,我收到了这个错误: Execution failed for task ':app:pr
我显然不知道为什么会显示此错误。所有解决方案表示赞赏。 出了什么问题: 任务':app:processDebugResources'的执行失败。 Android resource linking fa
我用 Cordova 和 Ionic 创建了一个应用程序。 我在 iOS 上收到了应用程序构建成功。 我正在尝试在 Android 上构建这个应用程序(通过 cordova build android
成员请帮我解决这个问题!我已经尝试了书中的所有技巧来使我的 flutter 项目在 android studio 上运行。但仍然遇到相同的主题问题。下面 VS 代码的详细信息 失败:构建失败,出现异常
Ionic 命令有问题:Ionic build android Here我正在按照教程 Salesforce 创建一个连接到 Salesforce API 的应用程序。 (联系人等)。 现在,当我构建
不太清楚为什么我不断收到此错误: errors 经过一番搜索,问题似乎出在我的 build.gradle 文件中,但我找不到它。我已附上该文件,但还附上了我的错误的屏幕截图,以防我遗漏了某些内容。但这
构建 Gradle 时我收到此错误消息: Error:00:29:02.408 [ERROR] [org.gradle.internal.buildevents.BuildExceptionRep
我得到的错误是这样的: FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for
Bug:我想将 Realm 数据库从 4.2.0 版本更新到 4.3.3,但是在 gradle sync 之后,它会失败 目标 将领域从 4.2.0 更新到 4.3.3 预期结果 Gradle 同步会
错误:任务 ':app:processDebugResources' 执行失败。 com.android.ide.common.process.ProcessException: org.gradle
今天我在运行我的 Flutter 项目时遇到了一些未知错误,根据我的研究,它的解决方案不可用。如果您知道如何解决,请告诉我。在今天之前,我没有遇到过这样的错误。为什么它只发生在今天。是因为 Gradl
打开一个我两个月没碰过的项目进行轻微更新,更新 Android Studio 后我无法编译代码而不会出现以下错误。 过去两个小时我一直在用谷歌搜索这个问题,但无法解决。我已经尝试了其他类似线程中的几乎
这是我的xml文件的代码 我认为我的代码没有错,但我遇到了这些错误 最佳答案 如果您看到如下所示的错误: Gradle: Execution failed
我是一名优秀的程序员,十分优秀!