Execution failed for task ':app:lintVitalRelease'.
Could not resolve all artifacts for configuration ':flutter:profileRuntimeClasspath'.
Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
Execution failed for JetifyTransform: /Users//AndroidStudio_work/flutter/.android/Flutter/build/intermediates/flutter/profile/libs.jar.
Transform's input file does not exist: /Users//AndroidStudio_work/flutter/.android/Flutter/build/intermediates/flutter/profile/libs.jar. (See
https://issuetracker.google.com/issues/158753935)
解决方法 :
如果错误是关于 profile/libs.jar 的,请在终端机中进行以下操作:
flutter build apk --profile
flutter build apk --release
如果错误是关于 debug/libs.jar
flutter build apk --debug
flutter build apk --release
执行以后 ,以后 编译就不报错了
网友评论