Reading file from assets directory throws FileNotFoundException

后端 未结 2 618
终归单人心
终归单人心 2020-12-30 02:42

I\'m trying to read in a text file of a bunch of words that I want to use for a word game I am writing. This list is stored in the assets directory and is a txt file. But, w

2条回答
  •  北海茫月
    2020-12-30 02:53

    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.)

提交回复
热议问题