org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method annotationProccessorOptions() for arguments [build_8iuj5ymrxpm1tyag44tudol3w$_run_closure1$_closure3$_closure6$_closure7@7f75619f] on JavaCompileOptions$AgpDecorated_Decorated{annotationProcessorOptions=AnnotationProcessorOptions$AgpDecorated_Decorated{classNames=[], arguments={}, compilerArgumentProviders=[]}} of type com.android.build.gradle.internal.dsl.JavaCompileOptions$AgpDecorated. at org.gradle.internal.metaobject.AbstractDynamicObject$CustomMissingMethodExecutionFailed.<init>(AbstractDynamicObject.java:190) at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:184) at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:80) at build_8iuj5ymrxpm1tyag44tudol3w$_run_closure1$_closure3$_closure6.doCall(D:\programTest\myAndroidProgram\MyTest\app\chpter06\build.gradle:18) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.gradle.util.internal.ClosureBackedAction.execute(ClosureBackedAction.java:73) at org.gradle.util.internal.ConfigureUtil.configureTarget(ConfigureUtil.java:155) at org.gradle.util.internal.ConfigureUtil.configure(ConfigureUtil.java:106) at org.gradle.util.internal.ConfigureUtil$WrappedConfigureAction.execute(ConfigureUtil.java:167) at com.android.build.gradle.internal.dsl.DefaultConfig$AgpDecorated.javaCompileOptions(Unknown Source) at com.android.build.gradle.internal.dsl.DefaultConfig$AgpDecorated_Decorated.javaCompileOptions(Unknown Source)
时间: 2023-12-09 20:06:30 浏览: 401
android中遇到ERROR: Could not find method clean() for arguments这个奇葩的错误如何解决!!
5星 · 资源好评率100%
这个错误是由于在 `build.gradle` 文件的第 18 行尝试调用 `annotationProccessorOptions()` 方法,但是该方法在 `JavaCompileOptions` 类中找不到导致的。具体的错误信息是找不到方法 `annotationProccessorOptions()`。要解决这个问题,你需要检查代码中是否正确引用了该方法,并确保该方法存在于正确的类中。如果代码中的引用是正确的,那么可能是版本或配置的问题,你可以尝试更新相关依赖或查阅文档以了解正确的配置方法。
阅读全文