草庐IT

Provides-annotated

全部标签

android - 使用 App Engine 项目更改 Android 的 "Annotation Processor Factory"的位置

我正在使用基于Github的AppEngine项目开发Android。我下载了该项目,并弹出了一个似乎基于原始创建者的Eclipse配置的错误。Eclipse正在原始创建者拥有他的Eclipse文件夹的路径中寻找“注释处理器工厂”。我有要查找的文件,但对我来说,起始路径是Desktop\eclipse\plugins,而不是Eclipse查找的C:\ProgramFiles\Eclipse\Eclipse-3.7.1.classic\plugins。有什么方法可以改变它以使其正常工作吗?我已经看过,但似乎找不到任何关于此的信息。 最佳答案

android - annotation_processors (buck) 文档

与此票相关Parametersforannotationprocessorsaredisabledandundocumented我们如何使用annotation_processors和annotation_processor_deps?我在示例Android应用程序中使用领域并且没有注释(对于@RealmClass和@RealmMoudule)应用程序在通过buck构建时崩溃(如果通过构建则正常工作Gradle)。 最佳答案 以防万一有人偶然发现了这个,使用注释处理器的方式buckbuild是:annotation_processo

【java】【已解决】IDEA启动报错:Lombok Requires Annotation Processing

解决办法:1、根据异常提示操作:直接点击错误提示后面的蓝色标识【Enable】(小编点完了所以变灰色),此操作等价于下面的步骤:【File】-->【Settings】-->【Build】-->【Compiler】-->【AnnotationProcessing】-->勾选“enableAnnotationProcessing” 

java - 如果没有 @Provides- 或 @Produces-annotated 方法,则无法提供 Dagger2

所以我正在开发一个具有mvp模式的应用程序,但我在使用Dagger2时遇到了问题我为演示者创建了一个名为HelloPresenter的界面。然后我为该接口(interface)创建了一个名为HelloPresenterImpl的实现我的HelloPresenterpublicinterfaceHelloPresenter{publicvoidsayHello();}我的HelloPresenterImplpublicclassHelloPresenterImplimplementsHelloPresenter{StoryViewstoryView;@InjectpublicHelloP

android - Dagger2 中 @Binds 与 @Provides 注释的用例是什么

我不确定Dagger2的@Bindannotation.的用途根据我在网上阅读的内容,我仍然不清楚,但这里有一个例子:@ModulepublicabstractclassHomeModule{@BindspublicabstractHomePresenterbindHomePresenter(HomePresenterImphomePresenterImp);}类定义如下所示:publicinterfaceHomePresenter{Observable>loadUsers();}publicclassHomePresenterImpimplementsHomePresenter{pu

java - 迁移AndroidX运行报错android.support.annotation does not exist

我刚刚将我的项目迁移到AndroidX。同步和构建阶段没问题,但是当我尝试运行编译器时显示此错误:error:packageandroid.support.annotationdoesnotexist构建文件时出现此错误//GeneratedcodefromButterKnife.Donotmodify!packagecom.xdatanet.cda.Adapters;importandroid.support.annotation.CallSuper;//Gradle属性android.enableJetifier=trueandroid.useAndroidX=trueGradle

android - 移动到 Android Annotations v.2.7 后的 java.lang.ArrayStoreException : sun. reflect.annotation.TypeNotPresentExceptionProxy

在迁移到AndroidAnnotationsv.2.7后,我在eclipse中构建我的项目时遇到了问题,同时mavenbuild没问题。这是来自Eclipse错误日志的堆栈跟踪:ErrorMonNov0515:49:49GMT+02:002012Errorsrunningbuilder'JavaBuilder'onproject'heroes'.java.lang.ArrayStoreException:sun.reflect.annotation.TypeNotPresentExceptionProxyatsun.reflect.annotation.AnnotationParser

java: 无法访问org.mybatis.spring.annotation.MapperScan

java:无法访问org.mybatis.spring.annotation.MapperScan错误的类文件:/E:/maven/repository/org/mybatis/mybatis-spring/3.0.1/mybatis-spring-3.0.1.jar!/org/mybatis/spring/annotation/MapperScan.class类文件具有错误的版本61.0,应为52.0请删除该文件或确保该文件位于正确的类路径子目录中。springboot与mybatis整合时报如上错误:参考该篇文章:https://wenku.csdn.net/answer/6jghdrg8

android - 将 Mockito Matchers.any() 与 android.support.annotation.IntDef 自定义注释一起使用

我正在尝试编写一个Junit测试来验证是否调用了以下方法:publiclongexecuteRequest(@RequestCodes.Code.RequestAnnotationintrequestCode,ObjectrequestInformation,RequestListenerrequestListener){booleansuccess=false;...dostuff...returnsuccess?1L:-1L;}在测试中使用:Mockito.when(mockedRequest.executeRequest(Matchers.any(RequestCodes.Cod

The injection point has the following annotations: - @org.springframework.beans.factory.annotation.

Spingboot项目启动时报一下错误,错误如下:ErrorstartingApplicationContext.Todisplaytheconditionsreportre-runyourapplicationwith'debug'enabled.2023-08-2718:18:13.481ERROR4816---[main]o.s.b.d.LoggingFailureAnalysisReporter:***************************APPLICATIONFAILEDTOSTART***************************Description:Fieldz