Task with name 'mockableAndroidJar' not found in project ':app'
Asked Answered
I

1

4

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

Itis answered 29/10, 2018 at 15:6 Comment(4)
Have you tried any of the things listed in this thread ? github.com/anggrayudi/android-hidden-api/issues/21Errolerroll
@VincentD. thanks, it doesn't workItis
This one ? #47052313Errolerroll
@VincentD. nope. sorry, i will remove gradle android sdk and android studio and install it again. I'm so tired of this game called "find the right version code to make a successful buildItis
H
7

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

Hookup answered 5/12, 2018 at 12:41 Comment(1)
thanks. but in my case the problem was with pitest. It's a third party mechanism for testing. When i removed pitest everything is working.Itis

© 2022 - 2024 — McMap. All rights reserved.