Could not find method unMock() for arguments ...
See original GitHub issueGot 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:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Please give 0.6.3 a try - it should fix your problems
works perfectly well!!! Thanks