android - 构建应用程序时出现警告 : "Expected stack map table for method with non-linear control flow."

标签 android android-studio warnings ads tapjoy

我有一个去年工作的项目。最近我又开始研究它,但想更新所有可能的东西。除了这个,我基本上解决了所有问题。我在网上找不到有关此警告的任何信息。我在构建项目时得到它。我尝试下载并使用最新的 tapjoy jar,但它仍然出现。在警告中有一个缓存文件夹的路径,所以我尝试删除它,但 id 没有改变任何东西;也许我收到这个警告是因为那些文件夹丢失了?
完整的警告是这样的:

AGPBI: {"kind":"warning","text":"Expected stack map table for method with non-linear control flow.","sources":[{"file":"C:\\Users\\black\\.gradle\\caches\\transforms-3\\91514d5ad9a3a762574d6c5e2880beba\\transformed\\jetified-tapjoyconnectlibrary.jar"}],"tool":"D8"}
问题是我在控制台中有大约 200 行此警告,我想解决它们。
有没有人见过这个警告并且知道如何解决它?显然,非常感谢任何帮助。

最佳答案

丢失的文件夹应该与此警告无关。我在编写自定义gradle插件的过程中遇到了这个问题。看来ClassWriterClassVisitor在 ASM 中没有实现任何方法,会有这个警告,但不影响正常功能。你可以检查一下你的项目是否使用了那些gradle插件,可能这些插件是更新的问题引起的。

关于android - 构建应用程序时出现警告 : "Expected stack map table for method with non-linear control flow.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68982557/

相关文章:

android - 如何使我的 JAR 库包含在 AndroidManifest.xml 的 <uses-library> 中并将其用作共享库

android - 将 Cloud Firestore 和 Firebase 添加到 Flutter 项目 (Android)

c - 初始化链表时获取 "missing braces around initializer"

xml - Eclipse 提示 android :scrollbars and android:fadingEdge do not allow Strings - includes code

Android Emulator Wear OS P - 您的设备存在内部问题

android - 迁移到 Android X 后应用程序崩溃 android.view.InflateException

java - Android Studio 空对象引用

java - 我可以在 Android 中将 FloatingActionButton 转换为 ImageButton 吗?

php - "Notice: Undefined variable"、 "Notice: Undefined index"、 "Warning: Undefined array key"和 "Notice: Undefined offset"使用 PHP

iphone - 如何在我的代码中使用编译器#warning?