chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
812 stars 131 forks source link

Cannot build with org.gradle.unsafe.configuration-cache set to true #956

Open matsumo0922 opened 1 year ago

matsumo0922 commented 1 year ago

Chaquopy version

Describe your issue

I'm writing down my solution here so that no one else has the same problem with the same error as me...

I was suffering from the following error, I tried Chaquopy 15.0.0 and 14.0.2 but the error did not change. To put the error in a nutshell, it was because I had set org.gradle.unsafe.configuration-cache to true in gradle.properties.

This library does not seem to be able to cache. It took me 3 days to resolve this error...

Error

Unable to make field private volatile java.lang.ref.Reference java.lang.ref.ReferenceQueue.head accessible: module java.base does not "opens java.lang.ref" to unnamed module @12d0ebc3
mhsmith commented 1 year ago

Can you post the full stack trace? If you can't see it, display the whole build log by clicking the “Build: failed” caption to the left of the error message, then click the --stacktrace link near the bottom.

Note to self: it may be necessary for the plugin to call the notCompatibleWithConfigurationCache method.