首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我正在尝试构建我的颤振发布程序包,我的错误,因为我升级了我的颤振错误是执行失败的任务': app :minifyReleaseWithR8‘8’

我正在尝试构建我的颤振发布程序包,我的错误,因为我升级了我的颤振错误是执行失败的任务': app :minifyReleaseWithR8‘8’
EN

Stack Overflow用户
提问于 2022-08-04 05:12:25
回答 2查看 151关注 0票数 1
代码语言:javascript
运行
复制
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    C:/Users/Trishna/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
    C:/Users/Trishna/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6)
    C:/Users/Trishna/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.10/b8af3fe6f1ca88526914929add63cf5e7c5049af/kotlin-stdlib-1.6.10.jar (version 1.6)
    C:/Users/Trishna/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.6.10/c118700e3a33c8a0d9adc920e9dec0831171925/kotlin-stdlib-common-1.6.10.jar (version 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
ERROR:C:\Users\Trishna\AndroidStudioProjects\total_physical_user\build\flutter_inappwebview_quill\intermediates\runtime_library_classes_jar\release\classes.jar: R8: Type com.pichillilorenzo.flutter_inappwebview.BuildConfig is defined multiple times: C:\Users\Trishna\AndroidStudioProjects\total_physical_user\build\flutter_inappwebview_quill\intermediates\runtime_library_classes_jar\release\classes.jar:com/pichillilorenzo/flutter_inappwebview/BuildConfig.class, C:\Users\Trishna\AndroidStudioProjects\total_physical_user\build\flutter_inappwebview\intermediates\runtime_library_classes_jar\release\classes.jar:com/pichillilorenzo/flutter_inappwebview/BuildConfig.class

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\Trishna\AndroidStudioProjects\total_physical_user\build\flutter_inappwebview_quill\intermediates\runtime_library_classes_jar\release\classes.jar:com/pichillilorenzo/flutter_inappwebview/BuildConfig.class

* 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 6m 35s
Running Gradle task 'assembleRelease'...                          398.2s

┌─ Flutter Fix ──────────────────────────────────────────────────────────────┐
│ [!] The shrinker may have failed to optimize the Java bytecode.            │
│ To disable the shrinker, pass the `--no-shrink` flag to this command.      │
│ To learn more, see: https://developer.android.com/studio/build/shrink-code │
└────────────────────────────────────────────────────────────────────────────┘
EN

Stack Overflow用户

发布于 2022-08-04 06:26:57

app/build.gradle中将jdk7更改为Java jdk8

在此之前

代码语言:javascript
运行
复制
 dependencies {
 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

之后

代码语言:javascript
运行
复制
dependencies {
 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
票数 1
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73230627

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档