-
Notifications
You must be signed in to change notification settings - Fork 1
External Dependencies Manager Resolve Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
Stanislav Osipov edited this page Dec 22, 2020
·
1 revision
Recently I am getting this error more and more when trying to resolve dependencies with Google External Dependencies Manager (Play Service resolver)
Gradle failed to fetch dependencies.
Failed to run '/Users/stan/Documents/StansAssets/Native-Plugins/NativePluginsUnityProject/Temp/PlayServicesResolverGradle/gradlew --no-daemon -b "/Users/stan/Documents/StansAssets/Native-Plugins/NativePluginsUnityProject/Temp/PlayServicesResolverGradle/PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=/Applications/Unity/Hub/Editor/2019.4.16f1/PlaybackEngines/AndroidPlayer/SDK" "-PTARGET_DIR=/Users/stan/Documents/StansAssets/Native-Plugins/NativePluginsUnityProject/Assets/Plugins/Android" "-PMAVEN_REPOS=" "-PPACKAGES_TO_COPY=com.google.code.gson:gson:2.8.5;androidx.appcompat:appcompat:1.2.0;com.android.billingclient:billing:3.0.1;com.google.android.gms:play-services-auth:19.0.0;com.google.android.gms:play-services-games:21.0.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=3.4.0"'
stdout:
stderr:
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43)
at org.codehaus.groovy.reflection.GroovyClassValueFactory.<clinit>(GroovyClassValueFactory.java:35)
at org.codehaus.groovy.reflection.ClassInfo.<clinit>(ClassInfo.java:109)
at org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:95)
at org.codehaus.groovy.reflection.ReflectionCache.<clinit>(ReflectionCache.java:39)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:209)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:107)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:85)
...
FAILURE: Build failed with an exception.
There are a lot of similar cases over the internet but everyone sharing different solutions. I'd like to share the one that worked for me.
- Open Unity
Preferences
window - Toggle off and then back on toggles I marked on the screenshot below.
Hope it will help somebody.
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Build Info
- Dark Mode
- Package Info
- Runtime Permissions
- Run External App
- Immersive Mode
- PackageManager
- Popups & Preloaders
- Rate Us Dialog
- Activity
- Intent
- Settings Page
- Media Player
- Date Picker Dialog
- Time Picker Dialog
- Locale
- Wheel Picker Dialog
- Developer Console Setup
- Connecting to The Service
- Purchase Flow
- Transactions Validation
- Subscriptions
- Licensing
- Getting Started
- Games Sing-in
- Server-side API Access
- Leaderboards
- Achievements
- Saved Games
- Image Manager
- Settings Intent