From Android docs: http://developer.android.com/tools/projects/index.html
Library modules cannot include source resources
The tools do not support the use of source asset files (stored in the assets / directory) in the library module. Any resource resources used by the application must be stored in the assets / assets directory of the application module itself. However, resource files stored in the res / directory are supported.
And here is how you can read JSON from the res / raw folder: JSON Parsing in android - from the resources folder
Other workarounds:
reference to the object in the library project
Source: https://habr.com/ru/post/1208877/More articles:html contentEditable document.execCommand change selected opacity - htmlWhat is the correct way to recycle a WCF proxy? - asp.net-mvcDiffers by comparing multiple SQL columns - sqlAndroid: Why does clicking on a notification of intent with a backstack destroy the parent MainActivity? - androidRijndael Installed Enterprise Library Encryption Replacement - c #How to call a function from another function using the cfc object reference? - coldfusionCreating a bit flag using linq / lambda - c #How can I call .map () in ImplicitlyUnwrappedOptional? - swiftMenu function key does not appear on Android Lollipop devices [Nexus 9 and nexus 5] - androidjavascript for loop delay - javascriptAll Articles