tinker icon indicating copy to clipboard operation
tinker copied to clipboard

minsdk设置21时,编译报错can't get multiDexKeepProguard file

Open SmallBoneCoder opened this issue 3 years ago • 2 comments

异常类型:编译异常

tinker版本:19.14.5

gradle版本 3.5.3

是否使用热更新SDK: 否

系统:MacOS 10.14.6

堆栈/日志: ----------------------tinker build warning ------------------------------------ tinker auto operation: excluding annotation processor and source template from app packaging. Enable dx jumboMode to reduce package size. enable dx jumboMode to reduce package size. disable preDexLibraries to prevent ClassDefNotFoundException when your app is booting. disable archive dex mode so far for keeping dex apply.

tinker will change your build configs: we will add TINKER_ID=base-1.1 in your build output manifest file build/intermediates/manifests/full/*

if minifyEnabled is true you will find the gen proguard rule file at build/intermediates/tinker_intermediates/tinker_proguard.pro and we will help you to put it in the proguardFiles.

if multiDexEnabled is true you will find the gen multiDexKeepProguard file at build/intermediates/tinker_intermediates/tinker_multidexkeep.pro and we will help you to put it in the MultiDexKeepProguardFile.

if applyResourceMapping file is exist we will build app apk with resource R.txt file if resources.arsc has changed, you should use applyResource mode to build the new apk!

can't get multiDexKeepProguard file can't get multiDexKeepProguard file can't get multiDexKeepProguard file

说明: 下载的官方demo,tinker-sample-android 按demo的默认配置minsdk是14时,编译没有报错,打包之后项目的Application类和tinkerloader都在主dex,但是minsdk改成21之后,编译就会报这个错,打出来的包Application类和TinkerLoader都不在主dex,加载补丁的时候会报错。

SmallBoneCoder avatar Mar 11 '21 08:03 SmallBoneCoder

一样的问题

jzqCode avatar May 24 '21 08:05 jzqCode

最后怎么解决的???

fengdaren avatar Jul 20 '22 08:07 fengdaren