- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
刚升级到Android Studio 3.0,之前编译的项目报如下错误
Error:java.lang.RuntimeException: Annotation processors must now be declared explicitly. The following dependencies in the compile classpath are found to contain annotation processors. Please add them to the annotationProcessor configuration.
然而,这个following
没有定义。这是我的 build.gradle 中的编译语句的样子
compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
transitive = true;
}
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.2.0'
compile 'com.jakewharton.timber:timber:4.4.0'
compile 'io.reactivex:rxandroid:1.0.1'
compile 'io.reactivex:rxjava:1.0.14'
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
compile 'com.jpardogo.googleprogressbar:library:1.2.0'
compile 'com.wang.avi:library:2.1.3'
compile 'link.fls:swipestack:0.3.0'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.codemybrainsout.rating:ratingdialog:1.0.7'
compile 'org.greenrobot:greendao:3.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
provided 'org.projectlombok:lombok:1.12.6'
最佳答案
原来是 Lombok
和 Butterknife
导致了问题
我更新了 ButterKnife 并为 Lombok 添加了 annotationProcessor 解决了这个问题
implementation 'com.jakewharton:butterknife:8.6.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
compileOnly "org.projectlombok:lombok:1.16.16"
annotationProcessor "org.projectlombok:lombok:1.16.16"
更新
根据@Beshoy 的评论,将 compile
更改为 implementation
并将 provided
更改为 compileOnly
关于Android Studio 3.0 Canary 1 注释处理器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44084251/
无论哪个 WebGPU 示例(austin-eng、jack1232/WebGPU-Step-By-Step 等),我在启用了不安全 WebGPU 标志的 Chrome Canary 97.0.468
自从我在新的 Android Studio 3.4 Canary 4 上更新了我的项目后,gradle sync 失败了,因为: ERROR: variant.getApplicationId() i
Android Studio canary 卡在启动画面上,自最近几个 canary 版本以来一直在发生这种情况,但稳定版本没有此类问题。我尝试了此 Post 中的修复程序但它没有用。我目前运行的是
我刚刚下载了 Chrome 的测试版浏览器,CSS 似乎已切换 off .在设置或开发工具中看不到任何更改它的内容。有什么想法吗? 最佳答案 在 chrome 中,你在设置部分有它 通过齿轮图标,选择
在 linux 中,除了 canary 之外,还有很多方法可以绕过安全机制(如 NX、ASLR)。其实我在/arch/arm/include/asm/stackprotector.h/boot_ini
错误:(249, 5) 资源“attr/font”的重复值与配置“”错误:(249, 5) 先前在此处定义的资源 错误:java.lang.RuntimeException:com.android.b
我正在使用 google canary,不知何故,canary 窗口全黑了: 当我尝试卸载 google canary 时,没有任何反应。如果打开了 google canary,图标就会出现: 有人知
我的gcc版本是4.8.2,操作系统是ubuntu 14.04(64位)。我发现有时gcc会自动生成金丝雀来做缓冲区溢出保护有时不会,为什么? 生成金丝雀的情况:SIZE是4的倍数 #include
我将 LeakCanary 导入到我的项目中,以了解我内部有哪些内存泄漏以及有多少内存泄漏,然后能够修复它们。我注意到这两个我无法修复。更好地说,我不知道如何用代码来解决它们。有人知道如何给我一些建议
我明白金丝雀是什么。但是,如果您不知道有哪些测试版功能可用,这将毫无用处。那么有没有可以找到这些信息的地方?我一直在谷歌搜索,但找不到任何东西。 最佳答案 Chrome Canary 不是 Chrom
我正在研究不同类型的发布策略,并在 Canary 和 A/B 策略之间感到困惑。他们两个似乎很相似。 我在 Canary 上读到的每一处都是“允许通过向一小群人发布新版本来测试部署”。在 A/B 上是
关闭。这个问题是opinion-based .它目前不接受答案。 想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题. 7年前关闭。 Improve t
我今天正在安装新的 CPAN 模块,结果发现 JSON::XS 模块显示了它自己的警告/咆哮,关于在 5.22 以上的 Perls 中使用它。似乎作者厌倦了据称在那之后引入 Perl 的向后不兼容的更
我们观察到 Leak Canary 的很多误报,即 Leak Canary 检测到有泄漏,但后来又返回消息: LeakCanary: * NO LEAK FOUND. 我认为这是因为 GC 没有及时认
当我尝试在常规的Android SDK版本上构建项目时,它没有任何问题,但是当我使用Android SDK预览版 Canary 4 时,出现此错误 > Error:Could not fi
我正在尝试为尚不属于 Istio 服务网格但仍在同一个 k8s 集群中的应用程序实现金丝雀式的流量管理。例如:Pod命名空间中的 A non-mesh来电Service命名空间中的 B mesh它绑定
我已将 Leak Canary 添加到个人 Android 应用程序,并生成了以下堆栈跟踪: 05-13 06:49:15.589 27088-28230/com.upwardsnorthwards
如何在 Chrome Canary 29 中生成背后弹出窗口? 另请参阅 GitHub 上报告的问题: jquery-popunder #33 js-popunder #14 免责声明:是的,弹出式广
大家好,我在 android studio canary 3 布局中遇到问题,无法正常工作,解决方案是什么? 消息显示Gradle project sync failed的截图 最佳答案 尝试替换这个
在PHP的错误日志中出现了一个奇怪的错误,但是产生这个错误的脚本经常被使用并且从来没有产生过这个错误,目前只出现过一次。谁能告诉我为什么会这样? Error: [client {some IP}] A
我是一名优秀的程序员,十分优秀!