android - "Error:Gradle: Content is not allowed in prolog" when running tests -


using android studio, when try run unit tests, fails following error in messages (gradle build):

error:gradle: content not allowed in prolog. error:gradle: execution failed task ':module:mergedebugandroidtestresources'.       > /users/me/path/to/my/project/src/test/resources/fixtures/activity_feed.json:0:0: error: content not allowed in prolog. 

seems yet variant of content not allowed in prolog error, doesn't makes sense, found out searching solution. in case, points json file, doesn't contain prolog code.

find build variants view:

  • left tool pane
  • view -> tool windows -> build variants

once there, locate:

test artifact: android instrumentation tests

and instead android instrumentation tests select:

test artifact: unit tests


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -