问题:AAPT2 process unexpectedly exit. Error output: aapt2 W 06-26 09:56:23 8280 8280 LoadedArsc.cpp:682] Unknown chunk type ‘200’.
解决:
将Gradle版本升级至8.0.1以上
问题:Task :app:shrinkReleaseRes FAILED Execution failed for task ‘:app:shrinkReleaseRes’.
A failure occurred while executing com.android.build.gradle.internal.transforms.ShrinkProtoResourcesAction ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
解决:
将Gradle版本升级至8.0.1以上
问题:如果使用了R8混淆,Java17默认会开启R8 fullMode混淆模式,在网络请求序列化数据结构时会出现崩溃,可以关闭fullMode混淆
解决:
在gradle.properties中配置:android.enableR8.fullMode = false
标签:混淆,8.0,适配,Android14,编译,版本升级,android,fullMode
From: https://www.cnblogs.com/chenmiaotian/p/18261280