DexKnifePlugin icon indicating copy to clipboard operation
DexKnifePlugin copied to clipboard

请求升级支持 com.android.tools.build:gradle:3.0.0

Open SherlockGougou opened this issue 7 years ago • 18 comments

as已发布正式版本3.0,请求支持com.android.tools.build:gradle:3.0.0!感谢!

SherlockGougou avatar Oct 26 '17 01:10 SherlockGougou

3.0 plugin变化比较大,需要时间兼容

ceabie avatar Oct 30 '17 03:10 ceabie

尽量这两天吧,gradle 3.0变化太大了,我最近也没什么时间。如果你们能提供些 3.0 dex新编译流程的资料我还能快些

ceabie avatar Nov 01 '17 16:11 ceabie

@ceabie 有时间准备更新么。变化确实很大,为了方便分割策略跟release做类似的比较就好了吧,因为debug和release的任务不一样吧,处理起来应该不难。

lauhwong avatar Nov 16 '17 09:11 lauhwong

最近在测试3.0 的,但3.0 本身对multidex有做处理,3.0分支上已经是可以了,但没法像以前分得那么干净,不懂官方在打包的时候又做了什么

ceabie avatar Nov 17 '17 09:11 ceabie

已经发布 1.7.0.alpha 支持3.0,但可能会有bug,在issues 反馈。

ceabie avatar Nov 17 '17 10:11 ceabie

好棒~

NashLegend avatar Nov 19 '17 03:11 NashLegend

@chenenqiang12345 看看你的maindex里面有没有不就好了么。。。。。。。

lauhwong avatar Nov 20 '17 08:11 lauhwong

我目前使用multidex1.0.2可以正常打包,在低版本手机也能正常运行:

compile 'com.android.support:multidex:1.0.2'
androidTestCompile 'com.android.support:multidex:1.0.2'
androidTestCompile 'com.android.support:multidex-instrumentation:1.0.2'

SherlockGougou avatar Nov 20 '17 09:11 SherlockGougou

@chenenqiang12345 ClassNotFoundException一般和工具没什么关系,工具只生成maindexlist,你检查下app目录下生成的maindexlist是否有找不到的文件

ceabie avatar Nov 20 '17 10:11 ceabie

@chenenqiang12345 项目代码是开源的,有急用可以自行调试修复,谢谢。项目不是我工作所需,我需要安排时间处理。

ceabie avatar Nov 21 '17 06:11 ceabie

@chenenqiang12345 方便的话,你把有问题的测试工程发到我邮箱,[email protected],我这的配置无法重现。

ceabie avatar Nov 21 '17 11:11 ceabie

  protected static DexKnifeConfig getDexKnifeConfig(Project project) throws Exception {
        File fileConfig = project.file("dexknife.pro");
        if(!fileConfig.exists()) {
            fileConfig = project.file("dexknife.txt");
        }
}

@ceabie 老板 怎么 指定dexknife.txt这个文件 路径 急需!!!

chenenqiang12345 avatar Nov 25 '17 07:11 chenenqiang12345

@chenenqiang12345 project.file()值的是当前module目录下(例如 app目录下),你可以直接使用 new File() 指定绝对路径

ceabie avatar Nov 27 '17 08:11 ceabie

@ceabie 这是你的class文件,我没法改 ,啥时候支持自定义路径

chenenqiang12345 avatar Nov 28 '17 03:11 chenenqiang12345

请问,gradle 插件3.0现在支持了吗?

pinguo-hexiaogang avatar Feb 28 '18 08:02 pinguo-hexiaogang

3.1.2 come on boy please

MappApp avatar May 09 '18 08:05 MappApp

https://github.com/Tencent/tinker/issues/942#issuecomment-435680894 关注了很久都没有动静,自己写了个十分简陋的方案 可以支持3.0+以上的分包,但是功能很简单仅供参考

paul1992li avatar Nov 04 '18 16:11 paul1992li

@paul1992li 好的,谢谢,我参考一下

ceabie avatar Nov 22 '18 07:11 ceabie