Failed to transform \build\app\intermediates\flutter\debug\libs.jar

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 --release shouldn't have to access the debug or profile directories though.

TL;DR
If your error says debug/libs.jar, build --debug then --release.
If your error says profile/libs.jar, build --profile then --release.

 

https://github.com/flutter/flutter/issues/58247

你可能感兴趣的:(Failed to transform \build\app\intermediates\flutter\debug\libs.jar)