【发布时间】:2020-02-27 10:50:52
【问题描述】:
发布构建抛出(使用 gradle installRelease 时):
NullPointerException during IR Conversion
将 com.android.tools.build:gradle 从 3.5.3 升级到 3.6.0 后。
从 ~/.gradle/caches/.../jetified-lib.jar 转换 jetified lib 时发生错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> com.android.tools.r8.CompilationFailedException: Compilation failed to complete
NullPointerException during IR Conversion
at com.android.tools.r8.utils.y0.a(:21)
at com.android.tools.r8.utils.O.a(:51)
... 97 more
有人知道如何解决这个问题吗?
编辑:
查看https://developer.android.com/studio/releases/gradle-plugin 将其添加到 gradle.properties
android.useNewApkCreator=false
没有帮助...
【问题讨论】:
-
bundleRelease 也会发生,但 bundleDebug 或 installdebug 不会发生
-
你找到解决办法了吗?
-
最好在下面检查我的答案
标签: android-studio android-gradle-plugin android-r8