Reading file from assets directory throws FileNotFoundException Reading file from assets directory throws FileNotFoundException android android

Reading file from assets directory throws FileNotFoundException


Check whether the file was properly packaged in the assets folder inside the .apk file. (It can be browsed as a zip file. Rename it if necessary to look inside.)


on Maven, the Assets folder needs to be inside projectName/ not inside projectName/src/main as suggested in other examples.

Source:

http://jayway.github.io/maven-android-plugin/generate-sources-mojo.html