
有没有其他人看到此错误:
Errors found: /home/ligi/git/walleth/app/module-info.class: Error: Unexpected failure during lint analysis of module-info.class (this is a BUG in lint or one of the librarIEs it depends on) Stack: NullPointerException:InvalIDPackageDetector.checkClass(InvalIDPackageDetector.java:112)←AsmVisitor.runclassDetectors(AsmVisitor.java:154)←lintDriver.runclassDetectors(lintDriver.kt:1461)←lintDriver.checkClasses(lintDriver.kt:1329)←lintDriver.runfileDetectors(lintDriver.kt:1096)←lintDriver.checkProject(lintDriver.kt:895)←lintDriver.analyze(lintDriver.kt:416)←lintCliClIEnt.run(lintCliClIEnt.java:235) You can set environment variable liNT_PRINT_STACKTRACE=true to dump a full stacktrace to stdout. [lintError] ApplIEs to variants: noGethNoFirebaseForfdroIDOnlineDeBUG /home/ligi/git/walleth/app/module-info.class: Error: Unexpected failure during lint analysis of module-info.class (this is a BUG in lint or one of the librarIEs it depends on) Stack: NullPointerException:我只发现该项目面临相同的问题:
https://github.com/mozilla-mobile/android-components/issues/1730
任何解决方法都很好
解决方法:
Java Platform Module System(JPMS)所需的module-info.class文件上的AndroID Studio 3.3和更早版本的AndroID工具阻塞了.考虑到JPMS附带的第一个版本Java 9于2017年9月发布,JPMS附带的第一个LTS版本Java 11于2018年9月发布,大约比AndroID Studio 3.3早4个月,这让人感到困惑. AndroID问题追踪器中的相关错误:[lint] InvalidPackage crashes on module-info.class from byte-buddy
因此,解决方法:
>将AndroID工具升级到Beta版本3.4或更高版本.我在其中一个项目上测试了3.4.0-beta05,它运行良好.
>将您正在使用的任何库降级为尚不支持JPMS的版本(即不包含module-info.java).
以上是内存溢出为你收集整理的android-模块-info.class的lint分析期间发生意外故障全部内容,希望文章能够帮你解决android-模块-info.class的lint分析期间发生意外故障所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)