728x90
assets 에 파일을 집어넣고, 해당 파일을 앱에서 읽는 부분에서 아래와 같은 에러가 발생했다.
java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
문제의 해결은 gradle build 옵션에서 특정 확장자를 압축하지 말라는 지시를 추가하여 해결되었다.
build.gradle (:app)
android {
...
aaptOptions {
noCompress "tflite"
}
}