我不能再发布我的应用程序了。我使用的是AndroidStudio 4.0和FlatterSDK版本1.17。5.上个月我已经发布了两次我的应用程序,但现在我真的不知道错误的原因是什么。当我在终端中键入flatterbuildapk--release
时,会出现以下错误:
Running Gradle task 'assembleRelease'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app: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: ....\build\app\intermediates\flutter\profile\libs.jar.
> Failed to transform '....\build\app\intermediates\flutter\profile\libs.jar' using Jetifier. Reason: FileNotFoundException, message: ....\build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified). (Run with --stacktrace for more details.)
Please file a bug at http://issuetracker.google.com/issues/new?component=460323.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 42s
Running Gradle task 'assembleRelease'... 43.4s
Gradle task assembleRelease failed with exit code 1
我已经升级了gradle构建工具3.5。0 -
下面的解决方案对我有效
进入android文件夹-
lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false //Insert this line
}
对我来说,只有这样:
First: flutter build apk --debug
Then: flutter build apk --profile
In the end: flutter build apk --release
如果错误是关于profile/libs。jar
,在终端中执行以下操作:
flutter build apk --profile
然后呢
flutter build apk --release
解决了这个问题。
如果错误是关于debug/libs。jar
flutter build apk --debug
然后呢
flutter build apk --release
会解决问题的
我在运行flutter应用程序时遇到此错误。 出了什么问题:任务': app: eck DebugAarMetdata'执行失败。 执行 com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction 时失败 依赖项的 AAR 元数据 (META-INF/com/android/build/gradle/aar-metadata
null 请访问https://help.gradle.org获取更多帮助 生成在3M 12s中失败异常:Gradle task assembleDebug失败,退出代码为%1
我最近回到了我以前的flutter项目,更新了一大堆东西,因为我得到了错误。现在我得到了下面的错误。我已经在上面至少3天了,尝试了一堆不同的东西,但我似乎仍然找不到解决办法。任何帮助都非常感谢。我还包含了下面的文件: 下面是我的: 这是我的:
我正试图生成一个构建apk,但出现以下错误。这与颤振版本2.8.1兼容 /home/dell/snap/Flatter/common/Flatter/bin/Flatter——无颜色构建apk 无声建筑零安全有关更多信息,请参阅https://dart.dev/null-safety/unsound-null-safety 警告:将新nshttp://schemas.android.com/rep
失败:生成失败,出现异常。 > 出错原因: 任务“:flutter_facebook_login:VerifyReleaseResources”执行失败。 java.util.concurrent.executionexception:com.Android.builder.internal.aapt.v2.aapt2exception:Android资源链接失败/home/sanwal/pict