shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.55k stars 1.54k forks source link

更新Gradle7.4.1 编译报错 #524

Open demo-Hexj opened 1 year ago

demo-Hexj commented 1 year ago

已经添加这些配置: distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip classpath 'com.android.tools.build:gradle:7.4.1' classpath 'io.github.leon406:AndResGuard-gradle-plugin:1.2.23' android.enableResourceOptimizations=false

还是报以下错误:

Task :app:resguardNormalRelease convertToPatternString typeName mipmap format ic_launcher. convertToPatternString typeName xml format jpush. convertToPatternString typeName drawable format jpush. convertToPatternString typeName layout format jpush. convertToPatternString typeName layout format push. convertToPatternString typeName string format jg. convertToPatternString typeName style format MyDialogStyle convertToPatternString typeName style format JPushTheme

-->AndResGuard starting! Current thread# id: 227, name: included builds unziping apk to D:\hexj\project\mobile-dacs-android-jdk17\mobile-dacs-android\app\build\outputs\apk\normal\release\AndResGuard_DACS_APP_normal_2023H1(31749)_release_20230720120033\temp decoding resources.arsc parse to get the exist names in the resouces.arsc first reading packagename com.datacloak.mobiledacs resources mapping file D:\hexj\project\mobile-dacs-android-jdk17\mobile-dacs-android\app\build\outputs\apk\normal\release\AndResGuard_DACS_APP_normal_2023H1(31749)_release_20230720120033\resource_mapping_DACS_APP_normal_2023H1(31749)_release_20230720120033.txt done resources filter mapping file D:\hexj\project\mobile-dacs-android-jdk17\mobile-dacs-android\app\build\outputs\apk\normal\release\AndResGuard_DACS_APP_normal_2023H1(31749)_release_20230720120033\merge_duplicated_res_mapping_DACS_APP_normal_2023H1(31749)_release_20230 720120033.txt done writing new resources.arsc resources.arsc Character Encoding: utf-8 String pool size: 10 [AndResGuard] buildApk signatureType: SchemaV2
General unsigned apk: DACS_APP_normal_2023H1(31749)_release_20230720120033_unsigned.apk

Leon406 commented 1 year ago

反馈错地方了!!!

个人维护版本也已经归档了,也不能反馈, 目前支持到7.4.2 (jdk要求11及以下), jdk17会有问题, 好像是签名的包兼容问题

改下gradle jdk版本到11就好了