alibaba / freeline

A super fast build tool for Android, an alternative to Instant Run
https://www.freelinebuild.com/
BSD 3-Clause "New" or "Revised" License
5.48k stars 623 forks source link

多模块编译出错 #918

Open tcking opened 6 years ago

tcking commented 6 years ago

freeline versoin:0.8.8

工程结构: module A -> module B -> module C

module A脚本:

freeline{
        autoDependency false
        applicationProxy false
    }

module C:

//脚本增加
debugCompile 'com.antfortune.freeline:runtime:0.8.8'
    releaseCompile 'com.antfortune.freeline:runtime-no-op:0.8.8'
    testCompile 'com.antfortune.freeline:runtime-no-op:0.8.8'

//application.onCreate() 中增加:
 FreelineCore.init(application);

结果: 1.执行./gradlew :moudleA:assembleDebug出错: com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/antfortune/freeline/BuildConfig.class

2.执行python freeline.py -f出错,提示: intermediates/assets/debug/apktime file not found 但是三个module并没有配置任何的productFlavor

尝试过applicationProxy true可以编译通过,但是启动就崩溃,没有初始化我们自己的application,只能修改配置。