1、
问题:xxx has no declaration in the base values folder
场景:直接复制module
解决:File => Invalidate Caches / Restart => Invalidate and Restart.
2、
问题:This file can not be opened as a file descriptor; it is probably compressed
assets下的文件读取报错
原因:assets下的文件会被压缩以减少包大小,系统有设置一些格式的文件不被压缩,显然问题出现的原因是访问的文件被压缩导致的。
解决:
aaptOptions {
noCompress "tflite" //表示不让aapt压缩的文件后缀
}
3、java.net.NoRouteToHostException: No route to host
原因:本地调试,防火墙打开了