问题
Currently a student working through a chat app module with appBrewery. All working well until I updated to the latest Studio then this gets thrown up.
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Failed to notify dependency resolution listener. tried to access method sun.security.util.ECUtil.getECParameters(Ljava/security/Provider;)Ljava/security/AlgorithmParameters; from class sun.security.ec.ECKeyPairGenerator
Any ideas?
回答1:
I had a similar issue. Probably something went wrong during the update. My andorid studio had problems connecting to internet (gave me an error when trying to check for updates and the plugin marketplace wouldn't show anything). If yours does the same then there's a good chance you can fix it like this:
- Download the latest installer (if you don't have it already) and install it making sure that you confirm you want to delete your old installation when it asks
- Once installed, if you have any notifications under the "configure" menu on android studio's welcome screen that asks to update something, update it and then restart android studio.
- Done!
Hope this helps
回答2:
It is because of some file got corrupted while installing Android 4.0. So, doing Invalidate cache and restart will help you... After restart it will automatically download the corrupted files.
来源:https://stackoverflow.com/questions/62089212/android-studio-4-0-update