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;)Ljava/security/AlgorithmParameters; from class

Any ideas?

Solution 1: Maatteogekko

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

Solution 2: syedjibharat

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.

Solution 3: ykonda

I recently encountered this issue, and if it helps anyone, in app/build.gradle file make sure that compileSdkVersion and targetSdkVersion are the same. I had 28 and 29 respectively, and when I changed the former to 29 the app built fine.