Java task problem

FAILURE: Build failed with an exception.

  • What went wrong:

Could not determine the dependencies of task ‘:compileReleaseJavaWithJavac’.

Failed to find target with hash string ‘android-30’ in: /Users/tjoffice/Library/Android/sdk

I suspect your Android SDK is not up-to-date.

What does your Android SDK folder have in the platforms subfolder?

Mine has:


First go to Tools > Settings > Android SDK > and click the Install Packages. Then check the Check Installation button.
If there are still issues then install a new SDK, you need RAB 9.2 or newer, use Tools > Install JDK

Thanks a lot!

An interesting observation. Before there was the following: when compiling, the Buider downloaded SDK and installed it (according to the information in the terminal). And I was sure there was an update going on.

Only after your help, when manually did it, only then the error disappeared.

I gave two options, which one did you do that fixed it?

First: Android SDK updating