#346·atlas

[use]:升级到最新的版本 打release包,proguard后的包library的类找不到

Author: wtttcCreated Jan 29, 2019Updated Feb 12, 2020

原来使用的

  • com.taobao.android:atlasplugin:2.3.3.rc41
  • com.taobao.android:atlas_core:5.1.0.0@aar release的proguard一切运行正常

升级到

  • com.taobao.android:atlasplugin:3.0.1-rc81
  • com.taobao.android:atlas_core:5.1.0.8-RC1@aar 后,debug运行正常,编译release在proguard后出现错误,minifyEnabled false也正常

proguard-rules.pro保持和原来一样,只在app工程中添加了,没有使用consumerProguardFiles

出现错误如下,公共的sdk,打在maindex里的类,插件atlas工程都find不到

.....
Warning:there were 10840 unresolved references to classes or interfaces.
Warning:there were 834 unresolved references to program class members.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> Job failed, see logs for details

麻烦请问升级atlasplugin:3.0.1-rc81后proguard有什么特殊需要修改的吗,demo工程我这release跑不起来