- Home /
Question by
antpaw · Apr 20 at 01:41 PM ·
androiddependencies
Can not resolve dependencies for Android
When i try to resolve the Android dependencies I get the error "Gradle failed to fetch dependencies." and an info "Unable to determine which Android packages are installed." with:
Failed to run '/Applications/Unity/Hub/Editor/2020.3.33f1/PlaybackEngines/AndroidPlayer/SDK/tools/bin/sdkmanager --list --verbose'
stdout:
stderr:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
To me it looks like the wrong Java version is beeing used, I have the Unity JDK and Android SDK installed with unity and they are enabled in the settings. I'm using unity 2020.3.33f1 on macOS 12.3 (intel)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613055621im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity + Admob dependencies 0 Answers
Empty Android Build contains more dlls. 0 Answers
How can I upgrade my Android Jar Dependencies? 1 Answer
"Resolving Android Dependencies" at every start... 1 Answer
Android Dependencies fail to resolve when adding Firebase. (Graddle Failed to fetch dependencies) 0 Answers