question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find method unMock() for arguments ...

See original GitHub issue

Got an issue (before it works fine):

Could not find method unMock() for arguments [build_a23gdqvug8bcmrcd2asmg611q$_run_closure5@5d9e562b] on project ':app' of type org.gradle.api.Project.

Latest Gradle:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-rc-2-bin.zip

In build.gradle (root project):

        /* UnMock, https://github.com/bjoernQ/unmock-plugin */
        classpath 'de.mobilej.unmock:UnMockPlugin:0.6.2'

In app/build.gardle:

    apply plugin: 'de.mobilej.unmock'

    unMock {
        keepStartingWith "android.text.TextUtils"
        keep "android.net.Uri"
        keep "android.os.Bundle"
        /* Keep JSON parser available as a part of unit tests */
        keepStartingWith "org."
    }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bjoernQcommented, Jun 22, 2017

Please give 0.6.3 a try - it should fix your problems

0reactions
OleksandrKucherenkocommented, Jun 29, 2017

works perfectly well!!! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find method android() for arguments - Stack Overflow
I'm not too sure where exactly this method android() is located. If it is the one located in Application's build.gradle file, I still...
Read more >
Creating Partial Mocks - Mockery Docs
Partial mocks are useful when we only need to mock several methods of an object ... Don't forget that we can pass in...
Read more >
The Jest Object
The methods in the jest object help create mocks and let you control Jest's overall behavior. It can also be imported explicitly by...
Read more >
MockK | mocking library for Kotlin
Provides DSL to mock behavior. Built from zero to fit Kotlin language. Supports named parameters, object mocks, coroutines and extension function mocking.
Read more >
Gradle error Could not find method providedCompile()
Video contents:00:00 - problem00:05 - fetch and add dependency00:20 - gradle error occurs00:25 - solution00:37 - things seem to work :)The ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found