Giter VIP home page Giter VIP logo

Comments (4)

virjar avatar virjar commented on May 19, 2024

apk发出来看看

from ratel-core.

zhupeng-pro avatar zhupeng-pro commented on May 19, 2024

app-debug.apk.zip

一个简单的app,点击button展示toast "hello world!"

from ratel-core.

virjar avatar virjar commented on May 19, 2024

ratel_issue_5

dex的常量池里面有一个长度为22万的字符串。dx库重建dex的时候要求字符串的长度不能超过65535.
https://android.googlesource.com/platform/libcore/+/7047230/dex/src/main/java/com/android/dex/Mutf8.java#110

这应该是命中了dx库的一个bug,因为dx库实际上已经废弃很多年了。现在Android Studio内置的工具链使用的R8进行dex构建处理。

https://r8.googlesource.com/r8/+/refs/heads/main/src/main/java/com/android/tools/r8/dex/FileWriter.java#563

暂时修改dx逻辑解决这个问题,你再测试下

from ratel-core.

zhupeng-pro avatar zhupeng-pro commented on May 19, 2024

解决了!dex的String ID list中确实有个item长度很大,感谢大佬👍

from ratel-core.

Related Issues (10)

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.