Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with AGP 7.4.0 #412

Closed
eboudrant opened this issue Jan 13, 2023 · 1 comment
Closed

Issue with AGP 7.4.0 #412

eboudrant opened this issue Jan 13, 2023 · 1 comment
Assignees

Comments

@eboudrant
Copy link

eboudrant commented Jan 13, 2023

Hello, I'm trying AGP 7.4.0 using latest version and it fails to apply the plugin :

Caused by: java.lang.NullPointerException: Cannot invoke method selector() on null object
	at org.gradle.android.workarounds.RoomSchemaLocationWorkaround.applyToAllAndroidVariantsWithNewVariantApi(RoomSchemaLocationWorkaround.groovy:277)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.gradle.android.workarounds.RoomSchemaLocationWorkaround.applyToAllAndroidVariants(RoomSchemaLocationWorkaround.groovy:257)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.gradle.android.workarounds.RoomSchemaLocationWorkaround.apply(RoomSchemaLocationWorkaround.groovy:81)
	at org.gradle.android.AndroidCacheFixPlugin$_apply_closure1.doCall(AndroidCacheFixPlugin.groovy:69)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.gradle.android.AndroidCacheFixPlugin.apply(AndroidCacheFixPlugin.groovy:67)
	at org.gradle.android.AndroidCacheFixPlugin.apply(AndroidCacheFixPlugin.groovy)
	at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:43)

Gradle : 7.5
AGP : 7.4.0
Kotlin 1.7.20
Cache fix plugin : 2.6.1

@cdsap
Copy link
Member

cdsap commented Jan 14, 2023

hi @eboudrant, thanks for the issue. Fixed in #414 and released a new version 2.6.2
Closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants