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

可否支持本地已有gradle #630

Closed LichFaker closed 7 years ago

LichFaker commented 7 years ago

项目中一直使用已下载的Gradle 3.1,再接入FreeLine后编译提示错误: 找不到或无法加载主类 org.gradle.wrapper.GradleWrapperMain,可否将脚本中的./gradlew改成可修改或可配置的,这样我可以直接将其替换使用本地gradle

lomanyong commented 7 years ago

@LichFaker 原本就是可配置的...请参考下说明文档:https://www.freelinebuild.com/docs/zh_cn/

LichFaker commented 7 years ago

@lomanyong 修改为

freeline {
        buildScript "gradle assembleDebug"
 }

使用force提示freeline failed when read project info with script: ./gradlew -q checkBeforeCleanBuild ,不使用则提示Please make sure your application is properly running in your device.

qinhehu commented 7 years ago

@LichFaker 解决了么

LichFaker commented 7 years ago

@qinhehu 不好意思,当时是解决了的, 但没及时更新记录。 目前由于代理的问题,已经切换到buck了

zpetter commented 6 years ago

是因为开了代理是吗

LichFaker commented 6 years ago

@zpetter 不是,通过文档可以配置解决。 代理问题是指:使用freeline需要关闭代理,最终放弃了 :)