Giter Site home page Giter Site logo

Comments (13)

chenenyu avatar chenenyu commented on June 2, 2024 2

@Reign9201 @twlk-jzy @artharyoung 试试1.8.1版本

from router.

twlk-jzy avatar twlk-jzy commented on June 2, 2024

我的也出现了。 回退了一个版本。才解决

from router.

chenenyu avatar chenenyu commented on June 2, 2024

能提供下清单文件的内容和使用的agp版本、gradle版本吗?

from router.

artharyoung avatar artharyoung commented on June 2, 2024

AGP 7.2.1
gradle 7.3.3
Android SDK 32版本

使用1.8.0版本
编译也报类似错误:元素类型"manifest"必须后跟属性规范">"或"/>"

使用1.7.5版本,由于Android 12以后要求升级到Java 11
编译时会有警告:
Expected stack map table for method with non-linear control flow.

AGPBI: {"kind":"warning","text":"Expected stack map table for method with non-linear control flow. In later version of R8, the method may be assumed not reachable.","sources":[{"file":"/media/yong/sata/workspace/otherspace/android/app/build/intermediates/transforms/router/official/release/178.jar"}],"tool":"R8"}

希望也能解决一下
@chenenyu

from router.

chenenyu avatar chenenyu commented on June 2, 2024

@artharyoung 感谢反馈,我看下,方便的话能提供一个能复现的最小demo吗?

from router.

artharyoung avatar artharyoung commented on June 2, 2024

didi/DroidAssist#38 (comment)

from router.

chenenyu avatar chenenyu commented on June 2, 2024

已复现,正在解决

from router.

hua060097 avatar hua060097 commented on June 2, 2024

请教下大佬,这个警告:Expected stack map table for method with non-linear control flow. In later version of R8, the method may be assumed not reachable,是哪行代码解决的呢,这个出了有几千行的样子,好像是这个导致minifyReleaseWithR8速度超级慢,比原来的proguard还慢很多

from router.

hua060097 avatar hua060097 commented on June 2, 2024

@chenenyu

from router.

chenenyu avatar chenenyu commented on June 2, 2024

什么版本? @hua060097 贴下版本信息和日志吧

from router.

hua060097 avatar hua060097 commented on June 2, 2024

AGP 7.2.2
gradle 7.3.3
抱歉,没有用这个Router,我是升级了Gradle7后,minifyReleaseWithR8 task的构建用了太多时间,一半时间在报“R8: Expected stack map table for method with non-linear control flow. In later version of R8, the method may be assumed not reachable. ”,搜索到了这里,看到您好像解决了这个警告,但是看commit,没能发现是哪一行代码解决了这个问题

from router.

hua060097 avatar hua060097 commented on June 2, 2024

@chenenyu 我感觉可能是proguard文件里这个校验被R8忽略了,但是没有解决办法
image

from router.

chenenyu avatar chenenyu commented on June 2, 2024

之前使用了asm插桩,有这个警告,后来没用插桩就好了

from router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.