Git Product home page Git Product logo

Comments (4)

virjar avatar virjar commented on May 20, 2024

完全看不懂描述的啥东西

from ratel-core.

stathamcheng avatar stathamcheng commented on May 20, 2024

就是显示BUILD SUCCESSFUL in 1m 52s,过后说找不到java类:

-dontobfuscate

execute cmd: java -jar /tmp/proguard3626104743551435615.jar @/tmp/proguard18420058970009211339.pro
ProGuard, version undefined
Warning in /tmp/builder-dex11647356933490416329.jar:com/android/apksig/internal/util/X509CertificateUtils.class:
Type java.util.Base64 was not found, it is required for default or static interface methods desugaring of java.nio.ByteBuffer com.android.apksig.internal.util.X509CertificateUtils.getNextDEREncodedCertificateBlock(java.nio.ByteBuffer)
Warning in /tmp/builder-dex11647356933490416329.jar:com/virjar/ratel/builder/ratelentry/HelperZipAndSign.class:
Type java.nio.file.Files was not found, it is required for default or static interface methods desugaring of void com.virjar.ratel.builder.ratelentry.HelperZipAndSign.zipalign(java.io.File, java.io.File)
Warning in /tmp/builder-dex11647356933490416329.jar:com/android/apksig/internal/apk/ApkSigningBlockUtils.class:
Type java.util.stream.Collectors was not found, it is required for default or static interface methods desugaring of java.util.Map com.android.apksig.internal.apk.ApkSigningBlockUtils.computeContentDigests(com.android.apksig.util.RunnablesExecutor, java.util.Set, com.android.apksig.util.DataSource, com.android.apksig.util.DataSource, com.android.apksig.util.DataSource)
Warning in /tmp/builder-dex11647356933490416329.jar:com/android/apksig/internal/apk/ApkSigningBlockUtils$ChunkSupplier.class:
Type java.util.function.Supplier was not found, it is required for default or static interface methods desugaring of com.android.apksig.internal.apk.ApkSigningBlockUtils$ChunkSupplier
Warning in synthesized for lambda desugaring:
Type java.util.function.ToLongFunction was not found, it is required for default or static interface methods desugaring of com.android.apksig.internal.util.-$$Lambda$ChainedDataSource$YbhxliLhPY8NWeCBObJtP04F1LE
Warning in synthesized for lambda desugaring:
Type java.util.function.Predicate was not found, it is required for default or static interface methods desugaring of com.android.apksig.internal.apk.-$$Lambda$ApkSigningBlockUtils$AeXO_V-y3jcGXA8TwhH3-ZW5RHI
Warning in synthesized for lambda desugaring:
Type java.util.function.Function was not found, it is required for default or static interface methods desugaring of org.apache.tools.zip.-$$Lambda$ZipFile$gLw0qrVX7ZhWOQIzPn3nFi3apeo
replace BuildEnv.class

from ratel-core.

virjar avatar virjar commented on May 20, 2024

额。。。这是警告,涉及到java和android平台的一些细小差异。
比如java.util.function.Function是jdk8才会有的东西,有些库里面使用了jdk8的这些东西,但是我们实际上希望我们的工具可以在jdk7上面运行(没记错的话,对标到Android大概是Android7对应jdk7)。

故这是一个java语法脱糖的过程,这个过程所有java8语法降级到java7上面都可以。这个知识你要是开发过Android自然就应该懂得。 https://www.freesion.com/article/33001424487/

总结起来,这个告警是几乎所有的Android代码在编译过程都会发生的(希望app运行在Android7以及一下的设备上,但是代码以来的api在java8上面构建)。忽略即可。至于为啥会报警,为啥这个报警对我们的程序没有影响,篇幅有限,不太方便展开,你自己研究吧。

issues我关闭了,下次提问题好好做一下排版,清楚的描述你的问题。否则不回答直接close

from ratel-core.

stathamcheng avatar stathamcheng commented on May 20, 2024

好的!感谢大哥的解答!下次会注意。

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.