Android Unit Testing Robolectric:3.3.2 - No such manifest file: build\intermediates\manifests\full\debug\src\main\AndroidManifest.xml

Viewed 2775

when i am running my tests, following error is showing

No such manifest file: build\intermediates\bundles\debug\AndroidManifest.xml

java.lang.ClassCastException: android.app.Application cannot be cast to gyg.android.reviews.ReviewApplication

Following are Gradle dependencies

compile group: 'org.mockito', name: 'mockito-all', version: '2.0.2-beta'
testCompile "org.robolectric:robolectric:3.3.2"
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'junit:junit:4.12'

This is how i am starting my Test Class

@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class)
public class ReviewListPresenterTest {

I am using Roboelectric 3.3.2 with Android Studio 2.3.2 Quick help will be highly appreciated !

1 Answers
Related