Reason: FileNotFoundException, message: \build\app\intermediates\flutter\debug\libs.jar
(The system cannot find the path specified). (Run with --stacktrace for more details.)
升级了as 到4.0后就没法 build release apk了
google 这sb
解决方案:
I wouldn't consider this a solution, but I've found a workaround. I was having the same issue and tried building --debug
and then --release
and it still didn't work. However, if you look at the path in your specific error, it should either end with debug/libs.jar
or profile/libs.jar
. This indicates which apk you need to build first. In OP's case it is debug/libs.jar
so building --debug
first and then --release
worked. In my case, it was profile/libs.jar
so building --profile
and then --release
worked. I'm pretty sure building the --