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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -