Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task with name 'mockableAndroidJar' not found in project ':app'

after changing gradle android plugin version to 3.2.1

classpath 'com.android.tools.build:gradle:3.2.1'

I received such build error:

Task with name 'mockableAndroidJar' not found in project ':app'.

Invalidate cache and restart doesn't help

like image 383
Jenya Kirmiza Avatar asked Mar 06 '23 04:03

Jenya Kirmiza


1 Answers

Happened to me too, fixed by upgrading Android Studio to version 3.2.1

Seems like they've changed the gradle task name from mockableAndroidJar to createMockableJar

like image 101
marmor Avatar answered Mar 10 '23 09:03

marmor