Comments (4)
完全看不懂描述的啥东西
from ratel-core.
就是显示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.
额。。。这是警告,涉及到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.
好的!感谢大哥的解答!下次会注意。
from ratel-core.
Related Issues (10)
- vm虚拟机 感染apk报错 HOT 2
- 您好我看您发布的2.0版本是14mb的我自己打包出来的只有4mb并且闪退是什么原因呢 HOT 2
- repkg failure 重打包失败 HOT 4
- forbid对arm64貌似不支持。在armeabi-v7a是正常的 HOT 1
- 申请证书联系不上人 HOT 1
- fingerPrintModel 指纹信息 HOT 3
- RatelToolKit.killAppIfDetectANR HOT 1
- 作者有没考虑支持android12 HOT 1
- 使用zelda模式报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ratel-core.