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

Does not work on projects with newer versions of Gradle. #33

Open
Mohaymin opened this issue Jun 4, 2024 · 0 comments
Open

Does not work on projects with newer versions of Gradle. #33

Mohaymin opened this issue Jun 4, 2024 · 0 comments

Comments

@Mohaymin
Copy link

Mohaymin commented Jun 4, 2024

I'm getting the following error in the 112th line of react-native-draw-view/android/build.gradle while syncing

Caused by: org.gradle.api.artifacts.UnknownConfigurationException: Configuration with name 'compile' not found.
	at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.createNotFoundException(DefaultConfigurationContainer.java:124)
	at org.gradle.api.internal.DefaultNamedDomainObjectCollection.getByName(DefaultNamedDomainObjectCollection.java:357)
	at org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.getByName(DefaultConfigurationContainer.java:114)
	at org.gradle.api.internal.artifacts.configurations.ConfigurationContainerInternal$getByName.call(Unknown Source)
	at build_bk95csyi2l2qvfrliovoe2izz$_run_closure4$_closure10.doCall$original(/Volumes/WorkDrive/MohayminProject/TaskMaster/bds-mobile-app/node_modules/react-native-draw-view/android/build.gradle:112)
	at build_bk95csyi2l2qvfrliovoe2izz$_run_closure4$_closure10.doCall(/Volumes/WorkDrive/MohayminProject/TaskMaster/bds-mobile-app/node_modules/react-native-draw-view/android/build.gradle)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	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.configureSelf(ConfigureUtil.java:131)
	at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:702)
	at org.gradle.api.DefaultTask.configure(DefaultTask.java:319)
	at org.gradle.api.internal.project.DefaultProject.task(DefaultProject.java:1356)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:541)
	at org.gradle.internal.metaobject.BeanDynamicObject.tryInvokeMethod(BeanDynamicObject.java:218)
	at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:99)
	at org.gradle.internal.extensibility.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:38)
	at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.tryInvokeMethod(BasicScript.java:138)
	at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:163)
	at org.gradle.api.internal.project.DefaultDynamicLookupRoutine.invokeMethod(DefaultDynamicLookupRoutine.java:58)
	at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:87)
	at build_bk95csyi2l2qvfrliovoe2izz$_run_closure4.doCall$original(/Volumes/WorkDrive/MohayminProject/TaskMaster/bds-mobile-app/node_modules/react-native-draw-view/android/build.gradle:109)
	at build_bk95csyi2l2qvfrliovoe2izz$_run_closure4.doCall(/Volumes/WorkDrive/MohayminProject/TaskMaster/bds-mobile-app/node_modules/react-native-draw-view/android/build.gradle)

From what I understand, it is caused because a lot of the codes in react-native-draw-view/android/build.gradle is not supported in the newer versions of Gradle.

As a temporary fix, what changes should be made in that Gradle file? Downgrading the Gradle version is not an option for me.

@Mohaymin Mohaymin changed the title Does not support newer versions of Gradle. Does not work on projects with newer versions of Gradle. Jun 4, 2024
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

1 participant